In: Computer Science
1.What are the two fundamental models of inter-process communication? What are the two system calls used with message-passing systems?
2.How do processes communicate? What are blocking and non-blocking communication primitives?
3.Explain Remote Procedure Calls with the help of diagram.
4.Are function callback and inter-process communication same?
INTER-PROCESS COMMUNICATION
The 2 fundamental models of Inter-process Communication as listed below.
1) Shared Memory
In this type of model, we need to establish the memory region which will be shared by the Cooperating processess, this means the portion of memory will be shared by the processes that are cooperating with each other.
Hence, the processes will communicate with each other (exchange information) by reading and writing the data to the shared region of memory.
2) Message Passing.
In this type of model, the communication between the Cooperative processes will takes place by the exchange of the messages that the processes will exchange between each other.
The 2 system calls used with message - passing systems are as follows.
send(message)
receive(message)
The messgae that will be transfered between the processess will have either a fixed size or the variable size. This message will be sent by the sender process and is received by the recipient process.