Pipes (unidirectional byte streams between related processes) and named pipes or FIFOs (between unrelated processes through a file name).
Message queues (structured messages through the kernel), shared memory (the fastest, since processes map the same memory but need synchronization), sockets (local or network communication), and signals (simple notifications).
Choose by need: shared memory for high throughput, pipes for simple streaming (command-line pipelines), sockets for network or client-server designs, message queues for decoupled messaging.
Loading…