Describe the main issues with IPC (interprocess communication). List at least th
ID: 3833973 • Letter: D
Question
Describe the main issues with IPC (interprocess communication). List at least three techniques that can be used for IPC and compare their benefits. The test-and-set machine instruction is defined as follows: boolean test_and_set (int i) {if (i == 0) {i = 1; return true;} else return false;} It is assumed that it is implemented as an atomic instruction. Describe how test and-set can be used to achieve mutual exclusion for n processes (e.g. by writing a mutual exclusion procedure using pseudo-code). Explain whether your solution avoids busy waiting.Explanation / Answer
IPC (Inter process mechanism):
In computer science , the inter-process communication is defined as the techniques that an operating system that coordinates the actions of multiple processes, or transmission of data from one to another process.
IPC is mainly practiced in order to coordinate the data that is being shared by many processes.
Issues with IPC:-
1. Starvation:-
When multiple resources compete for shared resource to access , then starvation can occur. In his case one process may get control over the resource while others are denied.
2. Deadlock:-
Deadlock occurs when two processes needs same resources at the same time in order to proceed. This causes a process to wait and sometimes the process terminates due to lack of resources,
3.Data inconsistency:-
Processes can also modify the resources. When multiple processes modify a shared resource , then it leads to the occurrence of data incosistence. the section of the program that cause this is termed as critical section.
4.Shared buffer problem:-
This problem is related to the synchronization problem . It occurs when the sytatus of the resoyrces is not updated by the processes i.e whether it is free or not.
Techniques used in IPC and their benefits:-
Communication through the internet
TCP/IP protocol is used in the system software.
Advantage:-TCP/IP can efficiently operate where multiple vendors are available.
TCP/IP Intolerance:-
It have flexibility and tolerance for different OS.
Socket Interface:-
Its main role is to act as the endpoint of any communication.
WinSock :-
WinSock is an interface that operates for the interaction with TCP/IP
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.