CS FundamentalsHardGATE CS
How many of these statements about CPU scheduling are correct? 1. SJF minimises average waiting time among non-preemptive algorithms when all jobs are available at time 0. 2. Round Robin always gives a lower average turnaround time than FCFS. 3. SRTF can have more context switches than non-preemptive SJF on the same workload. 4. With equal-length jobs all arriving at time 0, RR with a small quantum gives a worse average turnaround time than FCFS.
- A. 2
- B. 4
- C. 3
- D. 1
Correct answer: C. 3
1, 3 and 4 are true. 2 is false: for equal jobs RR finishes all of them near the end, so its average turnaround is worse than FCFS (that is exactly statement 4).
More Operating Systems questions
- 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…
- 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…