CS FundamentalsHardGATE CS
Round Robin, quantum 2, processes (arrival, burst): A (0, 3), B (1, 5), C (2, 2), D (3, 4), E (4, 1). A process arriving exactly when a quantum ends is queued before the preempted process. In what order do the processes complete?
- A. A → C → E → B → D
- B. C → A → E → D → B
- C. A → C → E → D → B
- D. E → C → A → D → B
Correct answer: B. C → A → E → D → B
Gantt chart: A 0-2 | B 2-4 | C 4-6 | A 6-7 | D 7-9 | E 9-10 | B 10-12 | D 12-14 | B 14-15. Completion order: C → A → E → D → B.
More Operating Systems questions
- Processes spend 60% of their time waiting for I/O, independently. Using CPU utilisation = 1 − pⁿ, what is the minimum degree of…
- How many of these statements about CPU scheduling are correct? 1. SJF minimises average waiting time among non-preemptive algorithms when…
- Three jobs of 10 ms each arrive at time 0. Compare the average turnaround time under FCFS and under Round Robin with a 1 ms quantum (no…
- Assertion (A): Shortest Remaining Time First is optimal for average waiting time when preemption is free. Reason (R): Running the job with…
- A multilevel queue scheduler has a foreground (interactive, RR) queue with absolute priority over a background (batch, FCFS) queue, and…
- In a multilevel feedback queue, why do I/O-bound interactive processes tend to stay in the highest-priority queue?