- Trending Categories
- Data Structure
- Operating System
- C Programming
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Different Models of Interprocess Communication
Interprocess communication is the mechanism provided by the operating system that allows processes to communicate with each other. This communication could involve a process letting another process know that some event has occurred or transferring of data from one process to another.
A diagram that illustrates interprocess communication is as follows −
The models of interprocess communication are as follows −
Shared Memory Model
Shared memory is the memory that can be simultaneously accessed by multiple processes. This is done so that the processes can communicate with each other. All POSIX systems, as well as Windows operating systems use shared memory.
Advantage of Shared Memory Model
Memory communication is faster on the shared memory model as compared to the message passing model on the same machine.
Disadvantages of Shared Memory Model
Some of the disadvantages of shared memory model are as follows −
- 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.
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 −
- What is Interprocess Communication?
- Interprocess Communication with Sockets
- Message Passing vs Shared Memory Process communication Models
- Comparison of different Life Cycle Models
- What are the different shared-memory multiprocessor models?
- What are different database models? Explain their differences
- Evolution of Data Models
- Models of Abnormal Psychology
- Difference between Analog Communication and Digital Communication
- Economic Models of Consumer Behavior
- Communication Satellites
- Fashion Communication
- Satellite Communication
- History of Data Models and Databases
- Shared Memory Model of Process Communication