Inter-process communication is a mechanism that allows two or more separate running processes to transfer data between each other.

Syscalls

Some relevant syscalls:

  • read: takes data from a file descriptor. It returns the number of bytes read. At the end of the stream, it returns 0 bytes read.
  • write: writes data to a file descriptor. It returns the number of bytes written.