Here is the solution to the Bankers Algorithm example 3:
A) The content of the Need matrix will be:
Process | A | B | C
P0 | 3 | 1 | 3
P1 | 2 | 4 | 2
P2 | 7 | 4 | 5
P3 | 8 | 4 | 6
P4 | 8 | 5 | 5
B) The system is not in a safe state. The available resources (3, 3, 2) are not sufficient to fulfill the need of process P2 (7, 4, 5).
C) If process P1 requests one more instance of resource A and two instances of resource C, the request can be granted as
Related topics: