Interprocess Communication is a process of exchanging the data between two or more independent process in a distributed environment is called as Interprocess communication. Interprocess communication on the internet provides both Datagram and stream communication.
Examples Of Interprocess Communication:
- N number of applications can communicate with the X server through network protocols.
- Servers like Apache spawn child processes to handle requests.
- Pipes are a form of IPC: grep foo file | sort
It has two functions:
Exchange of data is done synchronously which means it has a single clock pulse.
- Message Passing:
When processes wish to exchange information. Message passing takes several forms such as: pipes, FIFO, Shared Memory, and Message Queues.
Characteristics Of Inter-process Communication:
There are mainly five characteristics of inter-process communication in a distributed environment/system.
- Synchronous System Calls:
In the synchronous system calls both sender and receiver use blocking system calls to transmit the data which means the sender will wait until the acknowledgment is received from the receiver and receiver waits until the message arrives.
- Asynchronous System Calls:
In the asynchronous system calls, both sender and receiver use non-blocking system calls to transmit the data which means the sender doesn’t wait from the receiver acknowledgment.
- Message Destination:
A local port is a message destination within a computer, specified as an integer. Aport has exactly one receiver but many senders. Processes may use multiple ports from which to receive messages. Any process that knows the number of a port can send the message to it.
It is defined as validity and integrity.
Messages must arrive without corruption and duplication to the destination.
Point to point message services are defined as reliable, If the messages are guaranteed to be delivered without being lost is called validity.
It is the process of delivering messages to the receiver in a particular order. Some applications require messages to be delivered in the sender order i.e the order in which they were transmitted by the sender.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Methods in Interprocess Communication
- Synchronization in Distributed Systems
- Hashing in Distributed Systems
- Deadlock detection in Distributed systems
- Deadlock Detection in Distributed Systems
- Comparison - Centralized, Decentralized and Distributed Systems
- Message based Communication in IPC (inter process communication)
- Operating Systems | Input Output Systems | Question 5
- Inter Process Communication (IPC)
- Communication between two process using signals in C
- Difference between Network OS and Distributed OS
- Various Failures in Distributed System
- Limitation of Distributed System
- Distributed Application Paradigms
- Concepts of Distributed databases
- Disadvantages of Distributed DBMS
- Advantages of Distributed database
- Mutual exclusion in distributed system
- Features of Distributed Operating System
- Implementation of Access Matrix in Distributed OS
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.