Question: Question 4 Deadlock Avoidance ( 4 0 points ) ( This question is related to ILO 2 c explain the underlying causes of concurrency and

Question 4 Deadlock Avoidance (40 points)(This question is related to ILO 2c explain the underlying causes of concurrency and deadlock issues.) Suppose there are three processes and three resource types in a system that avoids deadlock using the Bankers algorithm. The maximum resource requirement matrix is R1 R2 R3 P1442 Max = P2431 P31353 The total amount of each resource type in the system is given by the vector [1364]. The current allocation of resources is given by the matrix R1 R2 R3 P1400 Loan = P2121 P3210(a)(10 points) Is the current state safe or not? Justify your answer. (b)(10 points) Suppose P3 requests for 6 units of R1. Will this request be granted or refused? Justify your answer. (c)(20 points) While the original Bankers algorithm assumes a fixed number of processes, we can still apply it in case of limited changes. Let us consider a new process, P4, arrives with a maximum resource claim of [4,2,3] for the three types of resources. Now suppose P4 requests 3 units of R3. Should the request be granted or refused? Justify your answer. (This question is independent of (b)).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Programming Questions!