Given that there are FIVE (5) processes (A, B, C, D and E) and FOUR (4) resources (R1, R2, R3 and R4) involved in a project. Assume that all the resources are non-sharable and the number of instances for each resource is 2, 3, 2, 3 respectively. *Process A holds one instance of R1, R2 and R4. It requests one instance of R3. * Process B holds one instance of R1 and R3. It requests one instance of R4. * Process C holds one instance of R2 and R4. * Process D holds one instance of R2 and R4. It requests one instance of R1. * Process E holds one instance of R3. It requests one instance of R2. (i) Draw a directed resources allocation graph for the above scenario and Are these five processes in a deadlock state? Justify your answer.
Given that there are FIVE (5) processes (A, B, C, D and E) and FOUR (4) resources (R1, R2,
R3 and R4) involved in a project. Assume that all the resources are non-sharable and the number of instances for each resource is 2, 3, 2, 3 respectively.
*Process A holds one instance of R1, R2 and R4. It requests one instance of R3.
* Process B holds one instance of R1 and R3. It requests one instance of R4.
* Process C holds one instance of R2 and R4.
* Process D holds one instance of R2 and R4. It requests one instance of R1.
* Process E holds one instance of R3. It requests one instance of R2.
(i) Draw a directed resources allocation graph for the above scenario and Are these five processes in a deadlock state? Justify your answer.
Step by step
Solved in 3 steps with 1 images