5. 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.
6. 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);
9. 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.
12. SYNCHRONOUS MESSAGE PASSING
Synchronous message passing: requires the sender and receiver to wait for
each other to transfer the message.
• Blocking send.
• Blocking receive
15. Asynchronous message passing
Delivers A Message From Sender To Receiver, Without Waiting For A Receiver To Be Ready.
• Non Blocking Send .
• Non Blocking Receive.