CS FundamentalsVery hardGATE CS
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 different process costs 1 ms of overhead (no overhead before the very first dispatch). What fraction of the total time until all processes finish is useful CPU work?
- A. 9/12
- B. 9/14
- C. 4/13
- D. 9/13
Correct answer: D. 9/13
Slices with overhead: A 0-2 | B 3-5 | C 6-8 | A 9-11 | B 12-13. There are 4 ms of switching; the last process ends at 13, so useful work is 9/13. When the same process continues (or the CPU has only one process) no switch is charged.
More Operating Systems questions
- 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…
- Round Robin with quantum q and context-switch time s is used; every process does exactly one CPU burst of T ms with T < q. What is the CPU…