Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Now that upper management understands the basic concepts of operating systems, t

ID: 3719688 • Letter: N

Question

Now that upper management understands the basic concepts of operating systems, they are concerned with how processes communicate with each other in a distributed environment. Management is also concerned about not having enough resources available to all users, especially in their databases, and they feel that this may create problems for users if they access a resource at the same time. They ask you to explain how the operating systems you selected handle deadlock avoidance.

Your task is to provide at least 2 different mechanisms used in interprocess communication and at least 2 mechanisms to handle deadlock in a distributed environment.

Explanation / Answer

Answer)

The deadlock is avoided when the unsafe state is avoided.

One algorithm which helps the avoidance of deadlock is the Banker's Algorithm.

The below mentioned is the way it works for a distributed system:

When the resource has been requested by a processor even if the resource is well available , it is not allocated to the process but the system then pretends it to be allocated. The system then decides if the state is safe enough for the resource to be allocated to the process or not. If in case the state is not safe the resource is not granted to the process and if it is safe then it is given to the process.

The 2 different mechanism used for inter-process communication are:

1) Shared Storage which includes the shared virtual memory and the shared files.

2) Message based communication which includes the sockets, pipes, and signals

The 2 mechanism to handle the deadlock in a distributed environment are as follows:

1) Deadlock prevention by making the deadlock impossible to occur.

2) Deadlock avoidance by allocating the resources carefully

3) Deadlock detection by detecting then and recovering them.

Hope this answer helps. :) Happy to help.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote