inter-process communication

The ways separate running programs pass data to each other, such as pipes, sockets, shared memory and signals.

In more detail

Each process has its own memory, so one program cannot simply read another program variables. The operating system provides channels instead: a pipe carries a stream of bytes, a socket carries messages between programs on one machine or across a network, and shared memory lets two processes read the same area. Containers can limit which of these channels they share.

Examples

A shell pipe such as ps | grep python passes the output of one process to another.
In Node.js, fork() and cluster workers get an IPC channel automatically: send(value) on one side emits a message event on the other.

Related terms

Taught in

References

Certification courses