Inter-Process Communication (IPC) is the activity of sharing data across multiple and commonly specialized processes using communication protocols.
Typically, applications using IPC are categorized as clients and servers.
Client requests data and the Server responds to client requests.
IPC has ability to communicate between two cooperating process.
IPC is used in many contexts, such as a producer – consumer problem.
Methods of IPC:
It is simplest of all the IPCs.
A pipe enables one way communication between a processes.
When process terminates, pipe is removed automatically.
FIFO Stands for First In First Out.
It is also called as Named Pipes.
A FIFO enables unidirectional communication between a processes.
III) Message Queue:
It is used in implementation of Message Passing IPC.
Message Queue will remain, even if the process have existed.
It can be unidirectional or bidirectional.
IV) Shared Memory:
It includes a memory segment which is shared by two or more processes.
When a process creates a memory segment for IPC from its logical address space.
Other process can attach that available space for communication.
Shared Memory is one of the most simplest & Logical Implementation of IPC.