CS FundamentalsHardGATE CS
Round Robin, quantum 3 ms. Processes (arrival, burst): P1 (0, 7), P2 (1, 5), P3 (2, 3), P4 (4, 6). A process arriving at the same instant a quantum expires is placed in the ready queue before the preempted process. At what time does P4 complete?
- A. 22 ms
- B. 18 ms
- C. 21 ms
- D. 17 ms
Correct answer: C. 21 ms
Gantt chart: P1 0-3 | P2 3-6 | P3 6-9 | P1 9-12 | P4 12-15 | P2 15-17 | P1 17-18 | P4 18-21. P4 completes at 21 ms. Note the queue order at each expiry: newly arrived processes join the tail before the preempted one.
More Operating Systems questions
- Three CPU-bound processes arrive at time 0 in the order A (burst 5), B (burst 3), C (burst 8). Round Robin with quantum 2 is used. Not…
- Processes (arrival, burst): P1 (0, 3), P2 (2, 6), P3 (4, 4), P4 (6, 5), P5 (8, 2). Under non-preemptive Highest Response Ratio Next…
- Processes (arrival, burst, priority) with a smaller number meaning higher priority: P1 (0, 4, 3), P2 (1, 3, 2), P3 (2, 1, 4), P4 (3, 5…
- Processes (arrival, burst): P1 (0, 6), P2 (1, 4), P3 (2, 7), P4 (3, 2). Round Robin with quantum 2 ms (new arrivals join the queue before…
- Processes (arrival, burst) in ms: A (0, 4), B (1, 3), C (2, 2). Round Robin with quantum 2 ms; every switch from one process to a…
- Processes (arrival, burst): P1 (0, 8), P2 (1, 5), P3 (2, 2), P4 (4, 1), P5 (6, 4), scheduled by SRTF. How many times is a running process…