Consider the following set of processes and the length of the CPU burst given in ms. What is the average waiting time using priority scheduling (Lowest value highest priority)?
|
Process |
Burst-time |
Priority |
|
P1 |
10 |
3 |
|
P2 |
1 |
1 |
|
P3 |
2 |
4 |
|
P4 |
1 |
5 |
|
P5 |
5 |
2 |
1
7.2 ms
2
8.2 ms
3
5.2 ms
4
10 ms