Process | Max Needs | Current Allocation |
P0 | 10 | 5 |
P1 | 4 | 2 |
P2 | 9 | 2 |
Process | Allocation A | Allocation B | Allocation C | Max Needs A | Max Needs B | Max Needs C |
P0 | 1 | 1 | 1 | 3 | 2 | 2 |
P1 | 2 | 2 | 1 | 3 | 4 | 1 |
P2 | 2 | 1 | 0 | 3 | 1 | 0 |
Total Amount of A = 6, B = 5, C =2. Is this system in a safe state? Yes. Can we satisfy the request from P0 for one more of resource A? No. What about the same request from P2? Yes, because the path to completion starts with P2.
© Nachum Danzig 2010