This prefix is prepended to questions when you click ChatGPT or Google AI. Stored only in your browser via localStorage.
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\)