CS FundamentalsModerateGATE CS
In which order does the long-term, medium-term and short-term scheduler act on a process, and which one runs most frequently?
- A. Long-term admits it, medium-term may swap it out/in, short-term dispatches it; the short-term scheduler runs most often
- B. Short-term admits it, long-term dispatches it; the long-term scheduler runs most often
- C. Medium-term admits it; all three run equally often
- D. Long-term dispatches it; the medium-term scheduler runs most often
Correct answer: A. Long-term admits it, medium-term may swap it out/in, short-term dispatches it; the short-term scheduler runs most often
The CPU scheduler (short-term) runs on every interrupt or block, every few milliseconds; the long-term scheduler controls the degree of multiprogramming and runs rarely.
More Operating Systems questions
- Which scheduling algorithm can be implemented as a special case of priority scheduling where priority = 1 / (predicted next CPU burst)?
- Which scheduling algorithms can lead to STARVATION? 1. FCFS 2. Non-preemptive SJF 3. SRTF 4. Round Robin 5. Priority without aging
- A system uses Round Robin with quantum q. As q → ∞ it becomes FCFS. What does it approach as q → 0 (ignoring switch overhead)?
- Under a fair-share / proportional-share scheduler, user A runs 1 process and user B runs 4 processes, all CPU-bound, and the two users…
- Lottery scheduling gives process A 30 tickets, B 20 and C 50. Over many scheduling decisions, what fraction of the time does B run, and…
- In real-time scheduling, three periodic tasks have (execution time, period) = (1, 4), (2, 6), (1, 8), with deadline = period. Which…