CS FundamentalsHardGATE CS
A multilevel queue scheduler has a foreground (interactive, RR) queue with absolute priority over a background (batch, FCFS) queue, and processes never move between queues. What is the main risk, and what fixes it?
- A. Foreground jobs starve; making the background queue RR fixes it
- B. Background jobs can starve while foreground work keeps arriving; time-slicing between queues (e.g. 80/20) or a feedback queue with aging fixes it
- C. Deadlock between the queues; adding a mutex fixes it
- D. There is no risk because each queue has its own algorithm
Correct answer: B. Background jobs can starve while foreground work keeps arriving; time-slicing between queues (e.g. 80/20) or a feedback queue with aging fixes it
Fixed priority between queues means batch jobs run only when no interactive job is ready. Giving each queue a CPU share or letting waiting jobs age into higher queues prevents starvation.
More Operating Systems questions
- 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?
- How many of these statements about virtual memory are correct? 1. A process can have a virtual address space larger than physical memory…
- A process accesses an address whose PTE has the valid bit clear. Which TWO situations are both possible, and how does the OS tell them…