List and explain the communication mechanism between sending and receiving process?
One way of communication using shared memory Processes
In shared memory processes we can use shared memory for extracting information as a record from another process as well as for delivering any specific information to other processes.
The other method is by the communication between processes via message passing. This method is opposite to the shared memory process as , processes communicate with each other without using any kind of shared memory. If two processes p1 and p2 want to communicate with each other, they proceed as follows:
A standard message can have two parts: header and body.
The header part is used for storing message type, destination id, source id, message length, and control information. The control information contains information like what to do if runs out of buffer space, sequence number, priority. Generally, message is sent using FIFO style.
Get Answers For Free
Most questions answered within 1 hours.