Interprocess Communication and Cooperating Processes

In this topic, you will learn about, Interprocess Communication and Cooperating Processes.

Interprocess Communication: We know that cooperating processes can communicate in a shared memory environment. The scheme requires that these processes share a common buffer. Another way to achieve the same effect is for the O.S. to provide the means for cooperating processes to communicate with each other via an inter-process communication (IPC) facility.

Cooperating Processes: The concurrent processes executing in the O.S. may be either independent processes or cooperating processes. A process is independent if it cannot affect or be affected by the other processes executed in the system. Whereas a process is cooperating if it can affect or be affected by other processes executing in the system. It means that any process that shares data with other processes is a cooperating process.

There are several reasons for providing an environment that allows process cooperation:

  1. Information Sharing: To allow concurrent access to such kinds of resources.
  2. Computing Speed Up: Speed up can be achieved only if the computer has multiple process elements.
  3. Modularity: To construct a system in a modular fashion.
  4. Convenience: An individual user may have many tasks to work on at a time.
  5. (IPC): IPC provides a mechanism to allow processes to communicate and synchronize their action. IPC is best provided by a message system.

Comment below if you have queries related to the above topic, Interprocess Communication, and Cooperating Processes.

See also  Critical Section Problem