Unit 4 Deadlock Bankers Algorithms Numerical
Unit 4 Deadlock Bankers Algorithms Numerical
Solution:
Since, all the processes are executed, the system is in safe state and the safe sequence is: P1, P3, P4, P0,
P2
Example 2: Assume that there are three resources A, B, and C. There are 4 processes P0 to P3. At T0, we
have the following snapshot of the system.
Solution:
Here, the need of process P1 (3,3,2) is greater than the available resources (7,1,3) for resource B. So, we
cannot continue. Hence, the system is not in the safe state.