Question: Calculate using Bankers algorithm whether the system is in safe state or not by considering the following situation: There are 4 processes p1 through p4
- Calculate using Bankers algorithm whether the system is in safe state or not by considering the following situation: There are 4 processes p1 through p4 and 3 resources A (3 instances), B (14 instances) and C (11 instances). Show the safe sequence of processes if exist? [4]
Snapshot at T0:
Available resource instances A=1, B=0, C=0.
| Process
| Allocation | Maximum | Need | Available | ||||||||
|
| A | B | C | A | B | C | A | B | C | A | B | C |
| P0 | 0 | 0 | 1 | 0 | 0 | 1 |
|
|
|
|
|
|
| P1 | 1 | 5 | 2 | 1 | 7 | 5 |
|
|
|
|
|
|
| P2 | 1 | 3 | 5 | 2 | 3 | 5 |
|
|
|
|
|
|
| P3 | 0 | 6 | 3 | 0 | 6 | 5 |
|
|
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
