- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
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
Shared Memory Model of Process Communication
Process 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. One of the models of process communication is the shared memory model.
The shared memory in the shared memory model 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.
A diagram that illustrates the shared memory model of process communication is given as follows −
In the above diagram, the shared memory can be accessed by Process 1 and Process 2.
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.
Disadvantage 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.
- Related Articles
- Message Passing vs Shared Memory Process communication Models
- Message Passing Model of Process Communication
- What is shared-memory model in computer architecture?
- Differentiate between shared memory and message passing model in OS.
- IPC through shared memory
- Process and Types of Communication
- Algorithm for implementing Distributed Shared Memory
- What are Shared Memory MIMD Architectures?
- Java Memory Model
- What is Basic Communication Model?
- What is shared memory in the OS?
- Deutsch-Norman Memory Model of Attention
- Java (JVM) memory model
- Process Communication in Operating System
- What is Inter process communication?
