Consider a single processor system with three resources types P, Q, and R which are shared by the three processes. There are 7 units of each resource type. Which of these processes will finish last?
|
Process |
Allocated |
Requested |
||||
|
P |
Q |
R |
P |
Q |
R |
|
|
P0 |
2 |
3 |
1 |
1 |
0 |
4 |
|
P1 |
1 |
3 |
0 |
2 |
5 |
3 |
|
P2 |
3 |
1 |
2 |
3 |
2 |
5 |
1
P0
2
P1
3
P2
4
None of these, because system is in unsafe state.