Chapter 24. Interprocess Communication

Interprocess communication, also known as IPC, covers the facilities offered by the operating system to allow processes to share information. In general, a process can access only its own address space, so the only way data can be shared is if that data can be found in a common area. The simplest answer is to put the data into a file, but this is slow, imposes lots of overhead (especially if the data won’t be needed again), and presents some problems with synchronization and locking. The real answer is to make the kernel provide some way to ship data back and forth without involving physical I/O.

The first attempt used pipes. These were implemented as short (4K) kernel buffers that would allow one process ...

Get Panic! UNIX® System Crash Dump Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.