Inter Process Communication in Operating System (OS)
Inter Process Communication in OS
There are 2 types of process –
- Independent Processes – Processes that do not share data with other processes.
- Cooperating Processes – Processes that shares data with other processes.
The cooperating process requires Interprocess communication (IPC) mechanism.
Inter-Process Communication is the mechanism by which cooperating process share data and information.
The mechanism that will allow them to exchange data and information are the following:–
- Shared memory
- Message Passing
Let’s look at few of the important points of each .
- A particular region of memory is shared between cooperating process.
- Cooperating process can exchange information by reading and writing data to this shared region.
- It’s faster than Memory Parsing, as Kernel is required only once, that is, setting up a shared memory . After That, kernel assistance is not required.
- Communication takes place by exchanging messages directly between cooperating process.
- Easy to implement
- Useful for small amount of data.
- Implemented using System Calls, so takes more time than Shared Memory.
Note – There is too much and extra information given on various websites, that is not necessary. What we have given is more than necessary for Inter Process Communication.
- Process Synchronization
- Critical Section
- Inter-Process Communication
- UEFI(Unified Extensible Firmware Interface) and how is it different from BIOS
- Mutex vs. Semaphore
- Atomic Operations in OS
- Peterson’s Algorithm for Mutual Exclusion (Only important for Cisco and Arista Networs)
- Peterson’s Algorithm for Critical Section Problem (Only important for Cisco and Arista Networs)
- Readers-Writers Problem