Suppose a system has 12 magnetic tape drives and at time t0, three processes are allotted tape drives out of their as given below:
|
|
Maximum Needs |
Current Needs |
|
p0 |
10 |
5 |
|
p1 |
4 |
2 |
|
p2 |
9 |
2 |
At time t0, the system is in safe state. Which of the following is safe sequence so that deadlock is avoided?
1
(p0, p1, p2)
2
(p1, p0, p2)
3
(p2, p1, p0)
4
(p0, p2, p1)