Consider the processes, and shown in the table. The completion order of the processes under the policies FCFS and RR (round robin scheduling with CPU quantum of time units) are
View worked solution
Answer: C
1. First-Come, First-Served (FCFS):
Since FCFS schedules processes strictly in the order of their arrival times ( at , at , and at ), they execute and complete in the same order:
- runs from to (completes at )
- runs from to (completes at )
- runs from to (completes at )
Thus, the FCFS completion order is .
2. Round Robin with Quantum = 2 (RR2):
We track the ready queue (RQ) and execution step-by-step:
- : runs. At , arrives. At , is preempted.
- : runs. At , arrives. At , is preempted.
- : runs. At , is preempted.
- : runs. At , is preempted.
- : runs. At , is preempted.
- : runs for its remaining unit and completes at .
- : runs for its remaining units and completes at .
- : runs for its remaining units and completes at .
Thus, the RR2 completion order is .
Free practice · Your answers on this page are not saved.
