Question: Consider the Deadlock Avoidance problem. Suppose we have four types of resources: 9 of type-A, 3 of type-B and 6 of type-C. In the current

Consider the Deadlock Avoidance problem. Suppose we have four types of resources: 9 of type-A, 3 of type-B and 6 of type-C. In the current state, maximum resources are needed, and the resources allocated to each of the processes are given as the following:

Process P P P3 P4 Max 3 2 2 6 3 4(a) Calculate the need matrix and the available array.

(b) Show that the current state is safe, that is, show a safe sequence of processes.

(c) Consider that two requests are presented separately:

Req (P 2 , [0, 0, 1]) and Req (P 4 , [0, 1, 0]).

Can these two requests be granted?

Process P P P3 P4 Max 3 2 2 6 3 4 2 1 1 234 2 Allocation 1 0 6 1 2 1 002 0 2 1

Step by Step Solution

3.56 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve the Deadlock Avoidance problem well follow these steps a Calculate the Need Matrix and the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

6095e42b44ad7_26365.pdf

180 KBs PDF File

Word file Icon

6095e42b44ad7_26365.docx

120 KBs Word File

Students Have Also Explored These Related Mathematics Questions!