Skip to main content
InterviewHubPRO
Section Overview
Q15

Question 15 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

30%
Linux OS Internals (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What are the Inter-Process Communication (IPC) mechanisms in Linux?

senior LevelSystem Design

In Simple Words: Ways independent processes communicate:

  1. Pipes & Named Pipes (FIFOs): Unidirectional byte streams between related (|) or unrelated processes.
  2. UNIX Domain Sockets (AF_UNIX): Bidirectional streaming or datagram communication on the same machine. Bypasses the network stack; 2x faster than TCP loopback (localhost).
  3. Shared Memory (shmget / mmap): Fastest IPC! Multiple processes map the same physical RAM page into their address space. Requires synchronization via Semaphores or Mutexes.
  4. Message Queues (POSIX mq): Message-oriented asynchronous queues with priority support.