CS FundamentalsHardGATE CS
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 switching overhead).
- A. FCFS 20 ms; RR 29 ms
- B. FCFS 20 ms; RR 20 ms
- C. FCFS 30 ms; RR 29 ms
- D. FCFS 20 ms; RR 10 ms
Correct answer: A. FCFS 20 ms; RR 29 ms
FCFS completions: 10, 20, 30 (average 20). RR interleaves them, so they finish at 28, 29 and 30 (average 29). Time slicing helps response time, not turnaround, for equal jobs.
More Operating Systems questions
- 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?
- On a multiprocessor, the scheduler tries to keep a thread on the CPU it ran on last. Which benefit does this processor affinity provide…
- Linux's CFS gives each runnable task a virtual runtime that increases more slowly for higher-weight (lower nice) tasks, and always runs…
- Which statement about scheduler activations / the two-level (many-to-many) threading model is correct?