Consider four processes and scheduled on a as per round robin algorithm with a time quantum of The processes arrive in the order all at time There is exactly one context switch from to exactly one context switch from to and exactly two context switches from to There is no context switch from to Switching to a ready process after the termination of another process is also considered a context switch. Which one of the following is possible as burst time of these processes?
View worked solution
Answer: D
To determine which option is not possible, let us trace the Round Robin scheduling with a time quantum of and the initial ready queue order at .
Let us test Option D with burst times :
- runs for units and terminates. Ready queue: .
- runs for units (remaining: ) and is preempted. Ready queue: .
- runs for units (remaining: ) and is preempted. Ready queue: .
- runs for units and terminates. Ready queue: .
- runs for units and terminates. Ready queue: .
- runs for units and terminates.
The execution sequence of processes is: Let us verify the constraints for this sequence:
- Context switch from to : Exactly (from ).
- Context switch from to : Exactly (first , second ).
- Context switch from to : (there is no transition from to ).
Free practice · Your answers on this page are not saved.
