Question: Q4: By considering the following resource allocation graph P = {P1, P2,P3,P4} R = {R1,R2,R3} E = {R1 --> P1, P1 --> R2, R2 -->

Q4: By considering the following resource allocation graph P = {P1, P2,P3,P4} R = {R1,R2,R3} E = {R1 --> P1, P1 --> R2, R2 --> P2, P2 --> R3, R3 --> P3, P3 --> R1, R1 --> P4} Case1 - resource type A has two instances - resource type B has one instance - resource type C has four instance Case2 - resource type A has five instances - resource type B has two instance -resource type C has four instance Case3 - resource type A has five instances - resource type B has three instance - resource type C has three instance Consider each case and discuss the four conditions (mutual exclusion, hold & wait, circular wait, no preemption) that will cause the deadlock and how to prevent the Deadlock by using these four conditions' negations (10 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
