Lec 9 IPC, Message Passing
Lec 9 IPC, Message Passing
SYSTEM
Information sharing
Resource sharing
Computation speedup
Synchronization
Modularity
Convenience
2 MODELS OF IPC MECHANISMS
Shared memory
IMG
SRC: https://www.os-book.com/OS9/slide-dir/PPT-dir/ch3.ppt
IPC: SHARED MEMORY
Implementation issues:
How are links established?
Can a link be associated with more than two processes?
How many links can there be between every pair of communicating processes?
What is the capacity of a link?
Is the size of a message that the link can accommodate fixed or variable?
Is a link unidirectional or bi-directional?
IPC: MESSAGE PASSING
Implementation of communication link
● Physical:
Shared memory
Hardware bus
Network
● Logical:
Direct or indirect
Synchronous or asynchronous
Automatic or explicit buffering
IPC: MESSAGE PASSING
Operations
Solutions