VMKV ARTS & SCIENCE
College
SCIENCE DAY
CELEBRATION
SUBMITTED BY
K.TAMILSELVAN
B.SC COMPUTER SCIENCE
2ND YEAR
INTER-PROCESS COMMUNICATION
MESSAGE PASSING COMMUNICTION
SYNCHRONOUS MESSAGE PASSING
ASYNCHRONOUS MESSAGE PASSING
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 has a predefined structure.
• Message passing uses two system calls:
1Send(name of destination process, message);
2 Receive(name of source process , message);
Send Message passing
Receive Message passing
MESSAGE PASSING COMMUNICTION
Mesaage passing communication may be of two types.
• 1. Direct communication: Explicitly name the process you are communicating with.
2. Indirect communication: communicate using mailboxes owned by receiver.
Direct communication
Indirect communication
SYNCHRONOUS MESSAGE PASSING
Synchronous message passing: requires the sender and receiver to wait for
each other to transfer the message.
• Blocking send.
• Blocking receive
Blocking send
Blocking receive
Asynchronous message passing
Delivers A Message From Sender To Receiver, Without Waiting For A Receiver To Be Ready.
• Non Blocking Send .
• Non Blocking Receive.
Non Blocking Send
Non Blocking Receive
Conclusion
COMMUNICATION LINK ARE POSSIBLE THROUGH MAILBOX
• One-to-one link
• Many-to-one link
• One-to-many link
• Many-to-many link
Mini project tamilselvan

Mini project tamilselvan