Because FCFS scheduling is based on Arrival Time as a criteria so there is no need of priority
Process |
Arrival TIme |
Burst Time |
Completion Time |
Turn Around Time = CT-AT |
Waiting Time=TAT-BT |
P1 |
0 |
10 |
10 |
10 |
0 |
P2 |
0 |
5 |
15 |
15 |
10 |
P3 |
2 |
3 |
18 |
16 |
13 |
P4 |
5 |
20 |
38 |
33 |
13 |
P5 |
10 |
2 |
40 |
30 |
28 |
Total Waiting time = 0+10+13+13+28 = 64
Because there are total 5 processes so Average Waiting time = 64/5 = 12.8 ms