Question: (a) Give TWO (2) differences between deadlock detection and deadlock avoidance. [3 marks] RI R2 R3 R4 (b) Figure below shows a total number of
(a) Give TWO (2) differences between deadlock detection and deadlock avoidance. [3 marks] RI R2 R3 R4 (b) Figure below shows a total number of resources with currently four processes running in a system. R1 R3 R4 3 2 Resource Vector P1 1 1 1 1 P2 2 lo 1 2 P3 1 2 1 0 P4 1 0 1 0 Claim Matrix R1 R2 R3 R4 21 1 1 0 Oo P2 1 0 1 P3 1 0 1 0 P4 0 0 1 0 Allocation Matrix (1) Draw the resource allocation graph to show the state of the system. [3 marks] (ii) Show the content of the Available Vector and Need Matrix [2 marks] Run the bankers' algorithm and state whether the system is currently in a safe or unsafe state
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
