1. Write code to implement this situation using inter process communication methodology, use message passing methodology. There should be two processes in the implementation. One main program should call these according to requirements. If you wants to send message then program in your side will work as a sender and your friend code will work as receiver. If your friend wants to send message, the program code will chose the other role instead.
Answers
Answer:
Inter Process Communication (IPC)
Explanation:
A process can be of two types:
1.Independent process.
2.Co-operating process.
An independent process is not affected by the execution of other processes while a co-operating process can be affected by other executing processes. Though one can think that those processes, which are running independently, will execute very efficiently, in reality, there are many situations when co-operative nature can be utilised for increasing computational speed, convenience and modularity. Inter process communication (IPC) is a mechanism which allows processes to communicate with each other and synchronize their actions. The communication between these processes can be seen as a method of co-operation between them.