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 ...
Get Operating Systems: Concurrent and Distributed Software Design 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.