Banker's Algorithm: 5 processes P₀ through P₄; 3 resource types A (10 instances), B (5 instances), and C (7 instances). (a) Need matrix (b) Safe…

Banker's Algorithm: 5 processes P₀ through P₄; 3 resource types A (10 instances), B (5 instances), and C (7 instances).

(a) Need matrix

(b) Safe state or Unsafe

Snapshot at time T₀:

Allocation A B CMax A B CAvailable A B C
P₀0 1 07 5 33 3 2
P₁2 0 03 2 2
P₂3 0 29 0 2
P₃2 1 12 2 2
P₄0 0 24 3 3

From the BB Assistant Director (ICT) February 2025 – Written (DU) exam, question 49 of 55.

More from this paper