Skip to main content
InterviewHubPRO
Section Overview
Q41

Question 41 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

82%
Linux OS Internals (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Linux IPC (Inter-Process Communication): Pipes, Unix Domain Sockets, Shared Memory, and Message Queues.

senior LevelPipesMicroservicesData Structures

In Simple Words:

IPC MechanismSpeed / LatencyPersistenceUse Case
**Pipes (`/mkfifo`)**Fast unidirectional streamProcess lifetime
Unix Domain Sockets (AF_UNIX)Very fast (bypasses TCP/IP stack)Filesystem socket fileNginx to PHP-FPM, Docker daemon to CLI
Shared Memory (shm_open, mmap)Fastest (Zero-Copy memory read/write)Kernel / System restartHigh-frequency trading, real-time audio/video streaming
POSIX Message QueuesFast structured message passingKernel lifetimeAsynchronous inter-process priority tasks