In: Computer Science
Answer the following questions about computer operating systems:
Process |
Burst Time |
Priority |
P1 |
10 |
3 |
P2 |
1 |
1 |
P3 |
2 |
3 |
P4 |
1 |
4 |
P5 |
5 |
2 |
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0
Allocated
Process |
R1 |
R2 |
R3 |
P1 |
2 |
3 |
0 |
P2 |
1 |
1 |
1 |
P3 |
4 |
1 |
2 |
P4 |
0 |
0 |
1 |
P5 |
0 |
0 |
0 |
Need
Process |
R1 |
R2 |
R3 |
P1 |
5 |
0 |
4 |
P2 |
2 |
0 |
1 |
P3 |
0 |
1 |
0 |
P4 |
5 |
2 |
1 |
P5 |
6 |
4 |
0 |
Available = (0 1 1)
Which, if any, of the processes above are deadlocked? If they are not deadlocked, in which order can the processes above execute?
According to the policy, in case of multiple Questions, only dirst one is mandatory. So, solving question 1, as per the time permits.