SlideShare a Scribd company logo
4
Most read
5
Most read
8
Most read
Unit VI Multiprocessors
by:
Er. Dipesh Vaya
Head & Asst. Prof.
Department of CSE
SSCE, Udaipur, Rajasthan
Contents
 Characteristics of Multiprocessors
 Interconnection Structure
 Interprocessor Arbitration
 Interprocessor Communication and Synchronization
 Cache Coherence
 Shared Memory Multiprocessors
SS College of Engineering, Udaipur, Rajasthan 2
Inter-processor
Communication and
Synchronization
by:
Er. Dipesh Vaya
Head & Asst. Prof.
Department of CSE
SSCE, Udaipur, Rajasthan
SS College of Engineering, Udaipur, Rajasthan
3
Introduction
 The various processors in a multiprocessor system must
be provided with a facility for communicating with each
other.
 A communication path can be established through a portion of memory
or a common input-output channels.
 The sending processor structures a request, a message,
or a procedure, and places it in the memory mailbox.
 Status bits residing in common memory
 The receiving processor can check the mailbox periodically.
 The response time of this procedure can be time consuming.
 A more efficient procedure is for the sending processor to alert the
receiving processor directly by means of an interrupt signal.
SS College of Engineering, Udaipur, Rajasthan 4
Introduction(cont.)
 In addition to shared memory, a multiprocessor system
may have other shared resources. e.g., a magnetic disk
storage unit.
 To prevent conflicting use of shared resources by
several processors there must be a provision for
assigning resources to processors. i.e., operating
system.
 There are three organizations that have been used in
the design of operating system for multiprocessors:
master-slave configuration, separate operating system,
and distributed operating system.
SS College of Engineering, Udaipur, Rajasthan 5
Introduction(cont.)
 In a master-slave mode, one processor, master, always
executes the operating system functions.
 In the separate operating system organization, each processor
can execute the operating system routines it needs. This
organization is more suitable for loosely coupled systems.
 In the distributed operating system organization, the operating
system routines are distributed among the available processors.
However, each particular operating system function is assigned
to only one processor at a time. It is also referred to as a
floating operating system.
SS College of Engineering, Udaipur, Rajasthan 6
Loosely Coupled System
 There is no shared memory for passing information.
 The communication between processors is by means of message passing
through I/O channels.
 The communication is initiated by one processor calling a procedure that
resides in the memory of the processor with which it wishes to
communicate.
 The communication efficiency of the interprocessor network depends on
the communication routing protocol, processor speed, data link speed,
and the topology of the network.
SS College of Engineering, Udaipur, Rajasthan 7
Interprocessor Synchronization
 The instruction set of a multiprocessor contains basic
instructions that are used to implement communication
and synchronization between cooperating processes.
 Communication refers to the exchange of data between different
processes.
 Synchronization refers to the special case where the data used to
communicate between processors is control information.
 Synchronization is needed to enforce the correct
sequence of processes and to ensure mutually exclusive
access to shared writable data.
SS College of Engineering, Udaipur, Rajasthan 8
Interprocessor Synchronization(cont.)
 Multiprocessor systems usually include various mechanisms to deal with
the synchronization of resources.
 Low-level primitives are implemented directly by the hardware.
 These primitives are the basic mechanisms that enforce mutual exclusion for more
complex mechanisms implemented in software.
 A number of hardware mechanisms for mutual exclusion have been developed.
 A binary semaphore
SS College of Engineering, Udaipur, Rajasthan 9
Mutual exclusion with a semaphore
 A properly functioning multiprocessor system must provide a mechanism
that will guarantee orderly access to shared memory and other shared
resources.
 Mutual exclusion: This is necessary to protect data from being changed
simultaneously by two or more processors.
 Critical section: is a program sequence that must complete execution before
another processor accesses the same shared resource.
 A binary variable called a semaphore is often used to indicate whether or
not a processor is executing a critical section.
SS College of Engineering, Udaipur, Rajasthan 10

More Related Content

PPTX
Input - Output Organization and I/O Interface
PPTX
Micro program example
PPTX
Thread scheduling...................pptx
PPT
Types of instructions
PPTX
Timing and control circuit
PPTX
Addressing Modes
PDF
Unit IV Memory and I/O Organization
Input - Output Organization and I/O Interface
Micro program example
Thread scheduling...................pptx
Types of instructions
Timing and control circuit
Addressing Modes
Unit IV Memory and I/O Organization

What's hot (20)

PPTX
Computer registers
PPTX
Register organization, stack
PPT
introduction to microprocessors
PPT
Arbitration in computer organization
PPTX
4.programmable dma controller 8257
PPT
Computer architecture pipelining
PPTX
Memory Organization
PPTX
Microprogrammed Control Unit
PPT
Memory Management in OS
PPS
Timing and-control-unit
PPT
Unit 6 interprocessor arbitration
PPT
Pipeline hazard
PPTX
Input Output Organization
PPT
Memory management
PPTX
Disk structure
PPT
pipeline and vector processing
PPT
Program control
PPTX
Processor organization & register organization
PPTX
Translation Look Aside buffer
PPT
Cache coherence
Computer registers
Register organization, stack
introduction to microprocessors
Arbitration in computer organization
4.programmable dma controller 8257
Computer architecture pipelining
Memory Organization
Microprogrammed Control Unit
Memory Management in OS
Timing and-control-unit
Unit 6 interprocessor arbitration
Pipeline hazard
Input Output Organization
Memory management
Disk structure
pipeline and vector processing
Program control
Processor organization & register organization
Translation Look Aside buffer
Cache coherence
Ad

Similar to Unit 6 inter processor communication and synchronization (20)

PPT
Unit 6 characteristics of multipreocessors
PPTX
Multiprocessor
PPTX
Operating system
PPTX
PPTX
3 multi processor os .This is the presentation we use to delever in Amity Uni...
PDF
Operating Systems - memory management
DOCX
Basic features of distributed system
PDF
Resist Dictionary Attacks Using Password Based Protocols For Authenticated Ke...
PDF
Docs_CSEOSLNotes2013.pdf
PDF
OPERATING SYSTEM
PPTX
OS .pptx
PPT
OS UNIT-I Introdution to Operating systems.ppt
PPTX
Operating system
PDF
Os notes
PDF
I0935053
DOCX
Operating system notes
PPTX
Understanding Basics of OS
PPTX
Operating system (BCS303) MODULE 1 NOTES
PDF
International Journal of Computer Science and Security Volume (4) Issue (1)
PPTX
Multiprocessor Operating System in Distributed Operating System
Unit 6 characteristics of multipreocessors
Multiprocessor
Operating system
3 multi processor os .This is the presentation we use to delever in Amity Uni...
Operating Systems - memory management
Basic features of distributed system
Resist Dictionary Attacks Using Password Based Protocols For Authenticated Ke...
Docs_CSEOSLNotes2013.pdf
OPERATING SYSTEM
OS .pptx
OS UNIT-I Introdution to Operating systems.ppt
Operating system
Os notes
I0935053
Operating system notes
Understanding Basics of OS
Operating system (BCS303) MODULE 1 NOTES
International Journal of Computer Science and Security Volume (4) Issue (1)
Multiprocessor Operating System in Distributed Operating System
Ad

Recently uploaded (20)

PDF
Digital Logic Computer Design lecture notes
PDF
composite construction of structures.pdf
DOCX
573137875-Attendance-Management-System-original
PPT
Mechanical Engineering MATERIALS Selection
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
web development for engineering and engineering
PDF
Well-logging-methods_new................
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Digital Logic Computer Design lecture notes
composite construction of structures.pdf
573137875-Attendance-Management-System-original
Mechanical Engineering MATERIALS Selection
OOP with Java - Java Introduction (Basics)
Lecture Notes Electrical Wiring System Components
CH1 Production IntroductoryConcepts.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
web development for engineering and engineering
Well-logging-methods_new................
UNIT 4 Total Quality Management .pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
bas. eng. economics group 4 presentation 1.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...

Unit 6 inter processor communication and synchronization

  • 1. Unit VI Multiprocessors by: Er. Dipesh Vaya Head & Asst. Prof. Department of CSE SSCE, Udaipur, Rajasthan
  • 2. Contents  Characteristics of Multiprocessors  Interconnection Structure  Interprocessor Arbitration  Interprocessor Communication and Synchronization  Cache Coherence  Shared Memory Multiprocessors SS College of Engineering, Udaipur, Rajasthan 2
  • 3. Inter-processor Communication and Synchronization by: Er. Dipesh Vaya Head & Asst. Prof. Department of CSE SSCE, Udaipur, Rajasthan SS College of Engineering, Udaipur, Rajasthan 3
  • 4. Introduction  The various processors in a multiprocessor system must be provided with a facility for communicating with each other.  A communication path can be established through a portion of memory or a common input-output channels.  The sending processor structures a request, a message, or a procedure, and places it in the memory mailbox.  Status bits residing in common memory  The receiving processor can check the mailbox periodically.  The response time of this procedure can be time consuming.  A more efficient procedure is for the sending processor to alert the receiving processor directly by means of an interrupt signal. SS College of Engineering, Udaipur, Rajasthan 4
  • 5. Introduction(cont.)  In addition to shared memory, a multiprocessor system may have other shared resources. e.g., a magnetic disk storage unit.  To prevent conflicting use of shared resources by several processors there must be a provision for assigning resources to processors. i.e., operating system.  There are three organizations that have been used in the design of operating system for multiprocessors: master-slave configuration, separate operating system, and distributed operating system. SS College of Engineering, Udaipur, Rajasthan 5
  • 6. Introduction(cont.)  In a master-slave mode, one processor, master, always executes the operating system functions.  In the separate operating system organization, each processor can execute the operating system routines it needs. This organization is more suitable for loosely coupled systems.  In the distributed operating system organization, the operating system routines are distributed among the available processors. However, each particular operating system function is assigned to only one processor at a time. It is also referred to as a floating operating system. SS College of Engineering, Udaipur, Rajasthan 6
  • 7. Loosely Coupled System  There is no shared memory for passing information.  The communication between processors is by means of message passing through I/O channels.  The communication is initiated by one processor calling a procedure that resides in the memory of the processor with which it wishes to communicate.  The communication efficiency of the interprocessor network depends on the communication routing protocol, processor speed, data link speed, and the topology of the network. SS College of Engineering, Udaipur, Rajasthan 7
  • 8. Interprocessor Synchronization  The instruction set of a multiprocessor contains basic instructions that are used to implement communication and synchronization between cooperating processes.  Communication refers to the exchange of data between different processes.  Synchronization refers to the special case where the data used to communicate between processors is control information.  Synchronization is needed to enforce the correct sequence of processes and to ensure mutually exclusive access to shared writable data. SS College of Engineering, Udaipur, Rajasthan 8
  • 9. Interprocessor Synchronization(cont.)  Multiprocessor systems usually include various mechanisms to deal with the synchronization of resources.  Low-level primitives are implemented directly by the hardware.  These primitives are the basic mechanisms that enforce mutual exclusion for more complex mechanisms implemented in software.  A number of hardware mechanisms for mutual exclusion have been developed.  A binary semaphore SS College of Engineering, Udaipur, Rajasthan 9
  • 10. Mutual exclusion with a semaphore  A properly functioning multiprocessor system must provide a mechanism that will guarantee orderly access to shared memory and other shared resources.  Mutual exclusion: This is necessary to protect data from being changed simultaneously by two or more processors.  Critical section: is a program sequence that must complete execution before another processor accesses the same shared resource.  A binary variable called a semaphore is often used to indicate whether or not a processor is executing a critical section. SS College of Engineering, Udaipur, Rajasthan 10