24.7. IPC: Pipes and signals
The final aspect of the classical UNIX system that we will consider is the provision of inter-process communication (IPC). We have already seen one crude option: a process may write to a file in the file system which another process subsequently reads. This can be coordinated using the exit code returned by a child process to indicate when the file is ready for reading. However, that solution is far from satisfactory for several reasons: it requires a further communication mechanism to supply the processes involved with the filename to use, it assumes that the file is written in its entirety before being read and it also requires that data is written to disk (or at least to the buffer cache) even if both processes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access