CS304PC:Computer Organization
and Architecture (R18 II(I sem))
Department of computer science and engineering (AI/ML)
Session 32
by
Asst.Prof.M.Gokilavani
VITS
3/21/2023 Department of CSE (AI/ML) 1
TEXTBOOK:
• 1. Computer System Architecture – M. Moris Mano,
Third Edition, Pearson/PHI.
REFERENCES:
• Computer Organization – Car Hamacher, Zvonks
Vranesic, Safea Zaky, Vth Edition, McGraw Hill.
• Computer Organization and Architecture – William
Stallings Sixth Edition, Pearson/PHI.
• Structured Computer Organization – Andrew S.
Tanenbaum, 4th Edition, PHI/Pearson.
3/21/2023 Department of CSE (AI/ML) 2
Unit V
Reduced Instruction set computer: CISC
characteristics, RISC characteristics.
Pipeline and vector processing: parallel processing,
pipelining, Arithmetic pipeline, instruction pipeline,
RISC pipeline, vector processing, array processing.
Multi Processors: Characteristics of multiprocessors,
interconnection structures, Interprocessors arbitration,
Interprocessors communication and synchronization,
cache coherence.
3/21/2023 Department of CSE (AI/ML) 3
Topics covered in session 32
3/21/2023 Department of CSE (AI/ML) 4
•Reduced Instruction set computer
•Pipeline and vector processing
•Multi Processors
Interprocessors communication and
synchronization
• Interprocess communication is the mechanism
provided by the operating system that allows
processes to communicate with each other.
• This communication could involve a process letting
another process know that some event has occurred or
the transferring of data from one process to another.
• A diagram that illustrates Interprocess communication
is as follows −
3/21/2023 Department of CSE (AI/ML) 5
Synchronization
• Synchronization is a necessary part of Interprocess
communication.
• It is either provided by the Interprocess control mechanism or
handled by the communicating processes.
• Some of the methods to provide synchronization are as
follows:
• Semaphore
• Mutual Exclusion
• Barrier
• Spinlock
3/21/2023 Department of CSE (AI/ML) 6
• Semaphore: A semaphore is a variable that
controls the access to a common resource by
multiple processes.
• The two types of semaphores are binary
semaphores and counting semaphores.
• Mutual Exclusion: Mutual exclusion requires
that only one process thread can enter the critical
section at a time.
• This is useful for synchronization and also
prevents race conditions.
3/21/2023 Department of CSE (AI/ML) 7
• Barrier: A barrier does not allow individual
processes to proceed until all the processes reach
it.
• Many parallel languages and collective routines
impose barriers.
• Spinlock: This is a type of lock.
• The processes trying to acquire this lock wait in a
loop while checking if the lock is available or not.
• This is known as busy waiting because the
process is not doing any useful operation even
though it is active.
3/21/2023 Department of CSE (AI/ML) 8
Approaches to Interprocess
Communication
• The different approaches to implement Interprocess
communication are given as follows −
• Pipe
• Socket
• File Signal
• Shared memory message QUEUE
3/21/2023 Department of CSE (AI/ML) 9
• Pipe: A pipe is a data channel that is unidirectional.
• Two pipes can be used to create a two-way data channel
between two processes.
• This uses standard input and output methods.
• Pipes are used in all POSIX systems as well as
Windows operating systems.
• Socket: The socket is the endpoint for sending or
receiving data in a network.
• This is true for data sent between processes on the same
computer or data sent between different computers on
the same network.
• Most of the operating systems use sockets for
Interprocess communication.
3/21/2023 Department of CSE (AI/ML) 10
• File: A file is a data record that may be stored on a
disk or acquired on demand by a file server.
• Multiple processes can access a file as required. All
operating systems use files for data storage.
• Signal: Signals are useful in Interprocess
communication in a limited way.
• They are system messages that are sent from one
process to another.
• Normally, signals are not used to transfer data but are
used for remote commands between processes.
3/21/2023 Department of CSE (AI/ML) 11
• Shared Memory: Shared memory is the memory that
can be simultaneously accessed by multiple processes.
• This is done so that the processes can communicate
with each other.
• All POSIX systems, as well as Windows operating
systems use shared memory.
• Message Queue: Multiple processes can read and write
data to the message queue without being connected to
each other.
• Messages are stored in the queue until their recipient
retrieves them.
• Message queues are quite useful for Interprocess
communication and are used by most operating
systems.
3/21/2023 Department of CSE (AI/ML) 12
• A diagram that demonstrates message queue and shared
memory methods of Interprocess communication is as follows
3/21/2023 Department of CSE (AI/ML) 13
Topics to be covered in next session 32
• Pipeline and vector processing
3/21/2023 Department of CSE (AI/ML) 14
Thank you!!!

More Related Content

PPTX
Physical and logical topologies in computer network and client server
PDF
Processor Organization and Architecture
PPTX
Cache memory
PPTX
Physical Layer
PDF
Unit 4-input-output organization
PPT
Design issues for the layers
PPTX
Microprogrammed Control Unit
Physical and logical topologies in computer network and client server
Processor Organization and Architecture
Cache memory
Physical Layer
Unit 4-input-output organization
Design issues for the layers
Microprogrammed Control Unit

What's hot (20)

PPT
Types of instructions
PDF
Programed I/O Modul..
PPTX
Flow Control.pptx
PPTX
Modes of transfer
PPT
ATM Networking Concept
PPT
Lan technologies
PPTX
Computer networking devices
PPTX
Bus aribration
PPTX
Guided And Unguided Media
DOCX
Network hardware
PPT
Guided Transmission Media
PPT
Pass 1 flowchart
PPTX
Types of Addressing modes- COA
PDF
Advanced computer network lab manual (practicals in Cisco Packet tracer)
PPTX
Computer registers
PDF
Memory mapping
PPTX
TCP IP Model | Computer Science
PPTX
Unit 2 data link control
PPTX
INSTRUCTION FORMAT.pptx
PPT
Switching
Types of instructions
Programed I/O Modul..
Flow Control.pptx
Modes of transfer
ATM Networking Concept
Lan technologies
Computer networking devices
Bus aribration
Guided And Unguided Media
Network hardware
Guided Transmission Media
Pass 1 flowchart
Types of Addressing modes- COA
Advanced computer network lab manual (practicals in Cisco Packet tracer)
Computer registers
Memory mapping
TCP IP Model | Computer Science
Unit 2 data link control
INSTRUCTION FORMAT.pptx
Switching
Ad

Similar to CS304PC:Computer Organization and Architecture Session 32 Interprocessors communication and synchronization.pptx (20)

PPTX
CS304PC:Computer Organization and Architecture Session 31 Multiprogramming.pptx
PDF
Lecture 3- Threads.pdf
PPTX
CS403: Operating System : Lec 3 Types of OS (1) .pptx
PPTX
Lecture 3- Threads (1).pptx
DOC
Computing notes
PDF
Distributed system lectures
PPTX
Dos unit3
PPTX
CS403: Operating System :Lec 2 Function of OS.pptx
PPT
20IT703_PDS_PPT_Unit_I.ppt
PPT
Chapter 1-Introduction.ppt
PDF
Design and implementation of microprocessor trainer bus system
PPTX
Distributed Systems.pptx
PPTX
Business Information System OSI Model.pptx
PPT
Chapter 1-Introduction.ppt
PPTX
UNIT 4 - UNDERSTANDING THE NETWORK ARCHITECTURE.pptx
PDF
Aca2 07 new
PPTX
CS403: Operating System : Lec 4 OS services.pptx
PPT
Distributed systems
PPT
06 - OSI Model.ppt
PPT
06 - OSI Model.ppt
CS304PC:Computer Organization and Architecture Session 31 Multiprogramming.pptx
Lecture 3- Threads.pdf
CS403: Operating System : Lec 3 Types of OS (1) .pptx
Lecture 3- Threads (1).pptx
Computing notes
Distributed system lectures
Dos unit3
CS403: Operating System :Lec 2 Function of OS.pptx
20IT703_PDS_PPT_Unit_I.ppt
Chapter 1-Introduction.ppt
Design and implementation of microprocessor trainer bus system
Distributed Systems.pptx
Business Information System OSI Model.pptx
Chapter 1-Introduction.ppt
UNIT 4 - UNDERSTANDING THE NETWORK ARCHITECTURE.pptx
Aca2 07 new
CS403: Operating System : Lec 4 OS services.pptx
Distributed systems
06 - OSI Model.ppt
06 - OSI Model.ppt
Ad

More from Guru Nanak Technical Institutions (20)

PPTX
22PCOAM21 Data Quality Session 3 Data Quality.pptx
PPTX
22PCOAM21 Session 1 Data Management.pptx
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
PDF
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
PDF
22PCOAM16 _ML_Unit 3 Notes & Question bank
PDF
22PCOAM16 Machine Learning Unit V Full notes & QB
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
PDF
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
PPTX
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
PPTX
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
PPTX
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
PPTX
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
PPTX
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
PPTX
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
PPTX
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
PDF
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
PDF
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
PDF
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
PPTX
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM21 Data Quality Session 3 Data Quality.pptx
22PCOAM21 Session 1 Data Management.pptx
22PCOAM21 Session 2 Understanding Data Source.pptx
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 Machine Learning Unit V Full notes & QB
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx

Recently uploaded (20)

PPTX
Environmental studies, Moudle 3-Environmental Pollution.pptx
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PDF
Computer System Architecture 3rd Edition-M Morris Mano.pdf
PDF
AIGA 012_04 Cleaning of equipment for oxygen service_reformat Jan 12.pdf
PPTX
Solar energy pdf of gitam songa hemant k
PPTX
CT Generations and Image Reconstruction methods
PDF
Present and Future of Systems Engineering: Air Combat Systems
PPTX
Micro1New.ppt.pptx the mai themes of micfrobiology
PPTX
CS6006 - CLOUD COMPUTING - Module - 1.pptx
PPTX
Principal presentation for NAAC (1).pptx
PPTX
Environmental studies, Moudle 3-Environmental Pollution.pptx
PDF
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf
PPTX
chapter 1.pptx dotnet technology introduction
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PDF
Beginners-Guide-to-Artificial-Intelligence.pdf
PDF
electrical machines course file-anna university
PDF
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
PPTX
Cisco Network Behaviour dibuywvdsvdtdstydsdsa
PDF
SEH5E Unveiled: Enhancements and Key Takeaways for Certification Success
Environmental studies, Moudle 3-Environmental Pollution.pptx
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
Computer System Architecture 3rd Edition-M Morris Mano.pdf
AIGA 012_04 Cleaning of equipment for oxygen service_reformat Jan 12.pdf
Solar energy pdf of gitam songa hemant k
CT Generations and Image Reconstruction methods
Present and Future of Systems Engineering: Air Combat Systems
Micro1New.ppt.pptx the mai themes of micfrobiology
CS6006 - CLOUD COMPUTING - Module - 1.pptx
Principal presentation for NAAC (1).pptx
Environmental studies, Moudle 3-Environmental Pollution.pptx
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf
chapter 1.pptx dotnet technology introduction
August -2025_Top10 Read_Articles_ijait.pdf
Beginners-Guide-to-Artificial-Intelligence.pdf
electrical machines course file-anna university
UEFA_Embodied_Carbon_Emissions_Football_Infrastructure.pdf
Cisco Network Behaviour dibuywvdsvdtdstydsdsa
SEH5E Unveiled: Enhancements and Key Takeaways for Certification Success

CS304PC:Computer Organization and Architecture Session 32 Interprocessors communication and synchronization.pptx

  • 1. CS304PC:Computer Organization and Architecture (R18 II(I sem)) Department of computer science and engineering (AI/ML) Session 32 by Asst.Prof.M.Gokilavani VITS 3/21/2023 Department of CSE (AI/ML) 1
  • 2. TEXTBOOK: • 1. Computer System Architecture – M. Moris Mano, Third Edition, Pearson/PHI. REFERENCES: • Computer Organization – Car Hamacher, Zvonks Vranesic, Safea Zaky, Vth Edition, McGraw Hill. • Computer Organization and Architecture – William Stallings Sixth Edition, Pearson/PHI. • Structured Computer Organization – Andrew S. Tanenbaum, 4th Edition, PHI/Pearson. 3/21/2023 Department of CSE (AI/ML) 2
  • 3. Unit V Reduced Instruction set computer: CISC characteristics, RISC characteristics. Pipeline and vector processing: parallel processing, pipelining, Arithmetic pipeline, instruction pipeline, RISC pipeline, vector processing, array processing. Multi Processors: Characteristics of multiprocessors, interconnection structures, Interprocessors arbitration, Interprocessors communication and synchronization, cache coherence. 3/21/2023 Department of CSE (AI/ML) 3
  • 4. Topics covered in session 32 3/21/2023 Department of CSE (AI/ML) 4 •Reduced Instruction set computer •Pipeline and vector processing •Multi Processors
  • 5. Interprocessors communication and synchronization • Interprocess communication is the mechanism provided by the operating system that allows processes to communicate with each other. • This communication could involve a process letting another process know that some event has occurred or the transferring of data from one process to another. • A diagram that illustrates Interprocess communication is as follows − 3/21/2023 Department of CSE (AI/ML) 5
  • 6. Synchronization • Synchronization is a necessary part of Interprocess communication. • It is either provided by the Interprocess control mechanism or handled by the communicating processes. • Some of the methods to provide synchronization are as follows: • Semaphore • Mutual Exclusion • Barrier • Spinlock 3/21/2023 Department of CSE (AI/ML) 6
  • 7. • Semaphore: A semaphore is a variable that controls the access to a common resource by multiple processes. • The two types of semaphores are binary semaphores and counting semaphores. • Mutual Exclusion: Mutual exclusion requires that only one process thread can enter the critical section at a time. • This is useful for synchronization and also prevents race conditions. 3/21/2023 Department of CSE (AI/ML) 7
  • 8. • Barrier: A barrier does not allow individual processes to proceed until all the processes reach it. • Many parallel languages and collective routines impose barriers. • Spinlock: This is a type of lock. • The processes trying to acquire this lock wait in a loop while checking if the lock is available or not. • This is known as busy waiting because the process is not doing any useful operation even though it is active. 3/21/2023 Department of CSE (AI/ML) 8
  • 9. Approaches to Interprocess Communication • The different approaches to implement Interprocess communication are given as follows − • Pipe • Socket • File Signal • Shared memory message QUEUE 3/21/2023 Department of CSE (AI/ML) 9
  • 10. • Pipe: A pipe is a data channel that is unidirectional. • Two pipes can be used to create a two-way data channel between two processes. • This uses standard input and output methods. • Pipes are used in all POSIX systems as well as Windows operating systems. • Socket: The socket is the endpoint for sending or receiving data in a network. • This is true for data sent between processes on the same computer or data sent between different computers on the same network. • Most of the operating systems use sockets for Interprocess communication. 3/21/2023 Department of CSE (AI/ML) 10
  • 11. • File: A file is a data record that may be stored on a disk or acquired on demand by a file server. • Multiple processes can access a file as required. All operating systems use files for data storage. • Signal: Signals are useful in Interprocess communication in a limited way. • They are system messages that are sent from one process to another. • Normally, signals are not used to transfer data but are used for remote commands between processes. 3/21/2023 Department of CSE (AI/ML) 11
  • 12. • Shared Memory: Shared memory is the memory that can be simultaneously accessed by multiple processes. • This is done so that the processes can communicate with each other. • All POSIX systems, as well as Windows operating systems use shared memory. • Message Queue: Multiple processes can read and write data to the message queue without being connected to each other. • Messages are stored in the queue until their recipient retrieves them. • Message queues are quite useful for Interprocess communication and are used by most operating systems. 3/21/2023 Department of CSE (AI/ML) 12
  • 13. • A diagram that demonstrates message queue and shared memory methods of Interprocess communication is as follows 3/21/2023 Department of CSE (AI/ML) 13
  • 14. Topics to be covered in next session 32 • Pipeline and vector processing 3/21/2023 Department of CSE (AI/ML) 14 Thank you!!!