Unit 2 IPC
Unit 2 IPC
All the processes that use the shared memory model need to make sure that
they are not writing to the same memory location.
Shared memory model may create problems such as synchronization and
memory protection that need to be addressed.
2. Message Passing Model
Multiple processes can read and write data to the message queue without being
connected to each other. Messages are stored on the queue until their recipient
retrieves them. Message queues are quite useful for interprocess communication and
are used by most operating systems.
Advantage of Messaging Passing Model
The message passing model is much easier to implement than the shared memory
model.
Disadvantage of Messaging Passing Model
The message passing model has slower communication than the shared memory
model because the connection setup takes time.
A diagram that demonstrates the shared memory model and message passing model
is given as follows
Methods in Interprocess Communication