Inter Process Communication (IPC) Last Updated : 29 Aug, 2025 Comments Improve Suggest changes Like Article Like Report Processes need to communicate with each other in many situations. Inter-Process Communication or IPC is a mechanism that allows processes to communicate. It helps processes synchronize their activities, share information and avoid conflicts while accessing shared resources.There are two method of IPC, shared memory and message passing. An operating system can implement both methods of communication.Shared MemoryCommunication between processes using shared memory requires processes to share some variable and it completely depends on how the programmer will implement it. Processes can use shared memory for extracting information as a record from another process as well as for delivering any specific information to other processes. Shared MemoryIn the above shared memory model, a common memory space is allocated by the kernel.Process A writes data into the shared memory region (Step 1).Process B can then directly read this data from the same shared memory region (Step 2).Since both processes access the same memory segment, this method is fast but requires synchronization mechanisms (like semaphores) to avoid conflicts when multiple processes read/write simultaneously.Message PassingMessage Passing is a method where processes communicate by sending and receiving messages to exchange data.In this method, one process sends a message and the other process receives it, allowing them to share information. Message Passing can be achieved through different methods like Sockets, Message Queues or Pipes.Message PassingIn the above message passing model, processes exchange information by sending and receiving messages through the kernel.Process A sends a message to the kernel (Step 1).The kernel then delivers the message to Process B (Step 2).Here, processes do not share memory directly. Instead, communication happens via system calls (send(), recv(), or similar).This method is simpler and safer than shared memory because there’s no risk of overwriting shared data, but it incurs more overhead due to kernel involvement.Please refer Methods in Inter process Communication for more details. Comment More infoAdvertise with us K kartik Improve Article Tags : Operating Systems GATE CS Process Synchronization Explore OS BasicsWhat is an Operating System?5 min readTypes of Operating Systems9 min readCommonly Used Operating System9 min readOperating System Services5 min readOperating Systems Structures9 min readBooting and Dual Booting of Operating System6 min readSystem Call9 min readProcess & ThreadsIntroduction of Process Management8 min readProcess Table and Process Control Block (PCB)6 min readProcess Schedulers in Operating System7 min readContext Switching in Operating System3 min readThread in Operating System4 min readCPU SchedulingCPU Scheduling in Operating Systems8 min readPreemptive and Non-Preemptive Scheduling3 min readMultiple-Processor Scheduling in Operating System8 min readThread Scheduling7 min readDeadlockIntroduction of Deadlock in Operating System11 min readBanker's Algorithm in Operating System8 min readWait For Graph Deadlock Detection in Distributed System5 min readDeadlock Prevention And Avoidance5 min readDeadlock Detection And Recovery6 min readDeadlock Ignorance in Operating System5 min readMemory & Disk ManagementMemory Management in Operating System7 min readFixed (or static) Partitioning in Operating System8 min readVariable (or Dynamic) Partitioning in Operating System4 min readPaging in Operating System8 min readSegmentation in Operating System4 min readPage Replacement Algorithms in Operating Systems7 min readFile Systems in Operating System8 min readAdvanced OSMultithreading in OS - Different Models5 min readCompaction in Operating System3 min readBelady's Anomaly in Page Replacement Algorithms11 min readTechniques to handle Thrashing6 min readFree Space Management in Operating System7 min readRAID (Redundant Arrays of Independent Disks)13 min readPracticeLast Minute Notes â Operating Systems15+ min readOperating System Interview Questions15+ min readOperating Systems - GATE CSE Previous Year Questions2 min read Like