Using Shared Files

Files are relevant to interprocess communication (IPC) in two ways:

  • Certain kinds of files are intended specifically for use in IPC, and present unique advantages when compared to other IPC techniques.

  • Processes can share the same file, even if the file is not used as a medium for IPC. For example, two processes might have a shared responsibility for updating a single file. Even though the file is not used for IPC, the processes must use IPC techniques to ensure that their updates do not conflict.

This section gives an overview of both of these aspects of files and IPC. For more detailed information on many of the topics discussed in this section, refer to the I/O Subsystem Programming Guide.