Multiple choice

WT = waiting time, AWT = average waiting time, AT = arrival time

Consider the following set of processes, the length of the CPU burst time and arrival time given in milliseconds are as follow:

   
Process Arrival time CPU time
P1 0 5
P2 2 4
P3 1 6
P4 3 3

Find out average waiting time using FCFS scheduling.

  1. 9 ms

  2. 4 ms

  3. 12 ms

  4. 6.25 ms

  5. 0 ms

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is correct answer. AWT = Total waiting time/total process. AWT = (0 + 9 + 4 + 12) / 4 = 6.25 ms