For the following set of processes scheduled using FCFS policy, determine the average waiting time. Assume that the processes arrived in the order P1, P2, P3, P4.
The correct answer is 16
Gantt chart:
\(\text{Waiting Time} = \text{Completion Time} - \text{Arrival Time}\)
\(\text{Average Waiting Time} = \frac{\text{Sum of All Waiting Times}}{\text{Number of Processes}} \)
\(\text{Average Waiting Time} = \frac{\text{0 + 8 + 23 + 33}}{\text{4}} \)
\(\text{Average Waiting Time} = \frac{\text{64}}{\text{4}} \)
\(\text{Average Waiting Time} = 16\)