SlideShare a Scribd company logo
2
Most read
3
Most read
10
Most read
Message   passing  ( in   computer  science)
INTER-PROCESS COMMUNICATION
• When messages are passed between two different processes we
speak of inter-process communication.
• Message is a block of information.
• Communication may be of two types.
1. Message passing.
2. Shared memory.
MESSAGE PASSING
• Message passing is a paradiagram of communication where
messages are sent from a sender to one or more recipent.
OR
• Message passing refers to mean of communication between:
1. Different threads within a process.
2. Different processes running on same node.
3. Different processes running on different node.
• MESSAGE has a predefined structure.
• Message passing uses two system calls:
1. Send(name of destination process, message);
2. Receive(name of source process , message);
MESSAGE PASSING COMMUNICTION
Mesaage passing communication may be of two types.
1. Direct communication: Explicitly name the process you are
communicating with.
2. Indirect comunication: communicate using mailboxes owned by
receiver.
DIRECT COMMUNICATION
INDIRECT COMMUNICATION
Message passing uses two system calls.
Send(B, message);
Receive(A, message);
A B
DIRECT COMMUNICATION
Symmetric addressing:
Send(B,msg
)
Receive(A,msg)
DIRECT COMMUNICATION
Asymmetric addressing:
A B
Message passing uses 2 system call:
Send(B, message)
Receive( message)
Send(B,Msg)
Receive(msg)
INDIRECT COMMUNICATION
INDIRECT COMMUNICATION MAIL
BOX
1. Synchronous message passing: requires the sender and receiver
to wait for each other to transfer the message.
• Blocking send.
• Blocking receive.
1. Asynchronous message passing: delivers a message from sender
to receiver, without waiting for a receiver to be ready.
• Non blocking send .
• Non blocking receive.
SYNCHRONOUS MESSAGE PASSING
BLOCKING SEND
door
Waiting busy
msg
SYNCHRONOUS MESSAGE PASSING
Blocking receive
door
Busy
waiting
ASYNCHORON0US MESSAGE PASSING
Non-blocking send
msg
msg
MAIL BOX
NON-blocking receive
msg
MAIL BOX
door
Zzzzzz
THE FOLLOWING TYPES OF COMMUNICATION
LINK ARE POSSIBLE THROUGH MAILBOX
• One-to-one link
• Many-to-one link
• One-to-many link
• Many-to-many link
Message   passing  ( in   computer  science)

More Related Content

PPTX
System calls
PPTX
Real time operating system
PDF
Problem Solving and Python Programming
PPTX
cloud computing 5.pptx
PPTX
Task assignment and scheduling
PPTX
File Management in Operating System
PPT
distributed shared memory
PPTX
Message passing in Distributed Computing Systems
System calls
Real time operating system
Problem Solving and Python Programming
cloud computing 5.pptx
Task assignment and scheduling
File Management in Operating System
distributed shared memory
Message passing in Distributed Computing Systems

What's hot (20)

PPTX
Inter Process Communication
PPTX
Distributed system architecture
PPTX
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
PDF
Distributed Systems Naming
PPT
OSI Network model ppt
PPTX
Concurrency Control in Distributed Database.
PDF
Multithreading
PPTX
Pram model
PPTX
Distributed system lamport's and vector algorithm
PDF
Deadlock in Distributed Systems
PDF
CS9222 ADVANCED OPERATING SYSTEMS
PPTX
Overview of Concurrency Control & Recovery in Distributed Databases
PPSX
Foult Tolerence In Distributed System
PPTX
Implementation levels of virtualization
PDF
management of distributed transactions
PPT
Naming in Distributed Systems
PPT
Logical Clocks (Distributed computing)
PDF
8. mutual exclusion in Distributed Operating Systems
PPT
File models and file accessing models
PPTX
Communication in Distributed Systems
Inter Process Communication
Distributed system architecture
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed Systems Naming
OSI Network model ppt
Concurrency Control in Distributed Database.
Multithreading
Pram model
Distributed system lamport's and vector algorithm
Deadlock in Distributed Systems
CS9222 ADVANCED OPERATING SYSTEMS
Overview of Concurrency Control & Recovery in Distributed Databases
Foult Tolerence In Distributed System
Implementation levels of virtualization
management of distributed transactions
Naming in Distributed Systems
Logical Clocks (Distributed computing)
8. mutual exclusion in Distributed Operating Systems
File models and file accessing models
Communication in Distributed Systems
Ad

Similar to Message passing ( in computer science) (20)

PPTX
messagepassing in operatig system os.pptx
PPTX
Mini project tamilselvan
PPTX
Operating system
PPTX
Dos unit 2
PPTX
5_Interprocess Communication.pptx
PDF
ITFT_Inter process communication
PPTX
Characterization of communication.ppt
PPTX
PPTX
PPT
41_P17CSC104_20201209054563635172951.ppt
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPT
message passing
PPTX
Inter Process Communication-R.D.Sivakumar
PPTX
Application layer
PPTX
Inter process communication
PPTX
interprocessn communication in os
PPTX
Message Oriented Middleware
PPTX
Message Passing Systems
PPTX
Chapter 3b- Process Communication (1) (1)(1) (1).pptx
messagepassing in operatig system os.pptx
Mini project tamilselvan
Operating system
Dos unit 2
5_Interprocess Communication.pptx
ITFT_Inter process communication
Characterization of communication.ppt
41_P17CSC104_20201209054563635172951.ppt
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
message passing
Inter Process Communication-R.D.Sivakumar
Application layer
Inter process communication
interprocessn communication in os
Message Oriented Middleware
Message Passing Systems
Chapter 3b- Process Communication (1) (1)(1) (1).pptx
Ad

More from Computer_ at_home (7)

PPTX
Association for computing machinery
PPT
Diffie-hellman algorithm
PPTX
Ip addresses
PPTX
Project scheduling and tracking
PPTX
Project scheduling and tracking
PPTX
Selection sort(sorting algorithm in data structure) and its time complexity
PPT
Flag registers (assembly language) with types and examples
Association for computing machinery
Diffie-hellman algorithm
Ip addresses
Project scheduling and tracking
Project scheduling and tracking
Selection sort(sorting algorithm in data structure) and its time complexity
Flag registers (assembly language) with types and examples

Recently uploaded (20)

PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
English Language Teaching from Post-.pdf
PDF
Business Ethics Teaching Materials for college
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Open Quiz Monsoon Mind Game Prelims.pptx
PDF
Open folder Downloads.pdf yes yes ges yes
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
Revamp in MTO Odoo 18 Inventory - Odoo Slides
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
UPPER GASTRO INTESTINAL DISORDER.docx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
English Language Teaching from Post-.pdf
Business Ethics Teaching Materials for college
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
O7-L3 Supply Chain Operations - ICLT Program
Open Quiz Monsoon Mind Game Prelims.pptx
Open folder Downloads.pdf yes yes ges yes
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
O5-L3 Freight Transport Ops (International) V1.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx

Message passing ( in computer science)