In: Computer Science
List two ways that inter -process communication is Achieved ?
Answer)
The inter-process communication is the technique using which the
processes communicate with other processes and thus synchronize
their operations. The inter-process communication is the methods
using which they co-operate. The inter-process communication can be
done by:
a. Using shared memory - Using shared memory the processes can
share information with each other and thus participate in the
inter-process communication. The processes keep the computations or
resources as the records in the memory and when other processes
need to use that shared information then it will check the record
stored in shared memory. Thus processes can store and deliver
information as records using the shared memory.
b. Messaging Passing Method - In this process the process
communication occurs without using any type of shared memory. In
this method, the processes to communicate establish a communication
link and start exchanging messages. Primitives will be such
as:
send(message) and receive(message).
The message passing is the method using which the process can send
the message to other processes using a direct or indirect approach.
This method allows the multiple processes which are connected to
read and write data using the message queue even if they are not
connected to each other. The messages are firstly stored in the
queue and then the receiver receives or retrieves the messages. The
message-passing model is easier to implement and build and is more
tolerant of high communication latency.