Tutorial Sheet 2 Deadlocks
Tutorial Sheet 2 Deadlocks
Q1. Suppose that the system is having 12 tape drives. At current time situation is:-
Process Maximum Needs Current Needs
P0 10 5
P1 4 2
P2 9 2
Answer the following questions using the banker’s algorithm:
a. Illustrate that the system is in a safe state and what is safe sequence?
b. If process P2 request one for tape drive then safe sequence exist or not?