CS FundamentalsHardGATE CS
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 a preempted process). What is the average RESPONSE time (first dispatch minus arrival)?
- A. 4.5 ms
- B. 8 ms
- C. 2 ms
- D. 3.5 ms
Correct answer: C. 2 ms
First dispatch times: P1 at 0, P2 at 2, P3 at 4, P4 at 8. Subtracting arrivals and averaging gives 2 ms. With quantum 4 it would be 4.5 ms, showing why a small quantum improves responsiveness.
More Operating Systems questions
- 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…
- Under FCFS, a long job L (burst 20) and three short jobs (burst 2 each) are scheduled. Case 1 arrivals: L at 0, S1 at 1, S2 at 1, S3 at 2…
- A 3-level feedback queue: Q0 is RR with quantum 4, Q1 is RR with quantum 8, Q2 is FCFS. New processes enter Q0; a process that uses its…
- Processes (arrival, burst): P1 (0, 3), P2 (1, 5), P3 (2, 2), P4 (4, 4). Which statement about the average waiting time is correct?
- Round Robin is used with quantum q = 10 ms and context-switch time s = 2 ms. All processes are CPU-bound with very long bursts, and the…