CS FundamentalsHardGATE CS
Statement 1: Under round robin, as the quantum shrinks towards the context-switch time, CPU efficiency approaches 50%. Statement 2: For a fixed set of CPU-bound jobs arriving together, a very large quantum gives the same average turnaround as FCFS. Which is correct?
- A. Only statement 1
- B. Only statement 2
- C. Both statements
- D. Neither statement
Correct answer: C. Both statements
With q equal to the switch time s, useful work is q / (q + s) = 50%. With q larger than every burst, RR never preempts and is exactly FCFS, so the turnarounds match.
More Operating Systems questions
- Which of these must a process NOT be able to do in user mode on a typical protected OS?
- A process's working set grows from 40 to 70 pages while it holds 50 frames under local replacement, and the system has 10 free frames…
- SRTF scheduling (on a tie the running process continues); processes (arrival, burst): P1 (0, 7), P2 (2, 4), P3 (4, 1), P4 (5, 4), P5 (9…
- A loop references pages 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4 with 3 frames, initially empty. How many faults occur under FIFO, LRU and OPT?
- Banker's algorithm, resources (A, B, C). Available = (1, 1, 2). Allocation / Max: P0 (1,0,1)/(2,1,2), P1 (2,1,0)/(3,2,2), P2…
- How many times is x printed? (Every fork() succeeds, and each print is an unbuffered write.) c int main() { fork(); fork() && fork()…