A system with 5 processes P0 through P4 and three resource types A, B, C have A with 10 instances, B with 5 instances, and C with 7 instances.

Lò Ngọc

New member
A system with 5 processes P0 through P4 and three resource types A, B, C have A with 10 instances, B with 5 instances, and C with 7 instances. At time t0, the following snapshot has been taken:
Code:
Process
P0               
P1               
P2           
P3           
P4       
Allocation (process-wise : P0 through P4 top to bottom) 
A   B   C
0   1   0
2   0   0
3   0   2
2   1   1
0   0   2
Max (process-wise: P0 through P4 top to bottom)
A   B   C
7   5   3
3   2   2
9   0   2
2   2   2
4   3   3
Available
A   B   C
3   3   2
The sequence <P1, P3, P4, P2, P0> leads the system to ____________
A. an unsafe state
B. a safe state
C. a protected state
D. a deadlock
 

Tìm kiếm

Back
Top