Inter Process Communication in Operating System (OS)

Inter Process Communication in OS

There are 2 types of process –

    • Independent Processes – Processes which do not share data with other processes .
    • Cooperating Processes – Processes that shares data with other processes.

On GeeksforGeeks irrelevant information in view of placements is given for IPC i.e. Inter process communication in operating system. Which is not at all worth it to study for interviews or placement theory.

Cooperating process require Interprocess communication (IPC) mechanism.

Inter Process Communication is the mechanism by which cooperating process share data and information.

There are 2 ways by which Interprocess communication is achieved –

    • Shared memory    
    • Message Parsing
Inter-Process Communication Types in OS Operating System


Let’s look at few of the important points of each .

Shared Memory

  1. A particular region of memory is shared between cooperating process.
  2. Cooperating process can exchange information by reading and writing data to this shared region.
  3. 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.

Message Parsing

  1. Communication takes place by     exchanging messages directly between cooperating process.
  2. Easy to implement   
  3. Useful for small amount of data.
  4. Implemented using System     Calls, so takes more time than Shared Memory.
Shared Memory in OS Operating System
Message Passing in OS Operating System

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.

Operating System Process Synchornization

      Read More

    1. Process Synchronization
    2. Critical Section
    3. Inter-Process Communication
    4. UEFI(Unified Extensible Firmware Interface) and how is it different from BIOS
    5. Mutex
    6. Semaphore
    7. Mutex vs. Semaphore
    8. Atomic Operations in OS
    9. Peterson’s Algorithm for Mutual Exclusion (Only important for Cisco and Arista Networs)
      1. Java
      2. C
      3. Python
    10. Peterson’s Algorithm for Critical Section Problem (Only important for Cisco and Arista Networs)
    11. Readers-Writers Problem

Please Login/Signup to comment