CS FundamentalsHardIBM · Deloitte pattern
Which statement about multilevel feedback queue (MLFQ) scheduling is correct?
- A. MLFQ never uses time quantums; each queue is pure FCFS
- B. MLFQ guarantees no process ever starves, with no additional mechanism needed
- C. A process is permanently assigned to one queue based on its priority at creation
- D. A process can move between queues based on its observed behaviour (e.g. demoted for using its full time quantum, suggesting CPU-bound behaviour), which approximates SJF without knowing burst times in advance
Correct answer: D. A process can move between queues based on its observed behaviour (e.g. demoted for using its full time quantum, suggesting CPU-bound behaviour), which approximates SJF without knowing burst times in advance
MLFQ's key idea is adaptive feedback: a process that keeps using its whole quantum is demoted to a lower-priority, longer-quantum queue (it looks CPU-bound), while one that gives up the CPU early (I/O-bound behaviour) stays high priority — approximating SJF/response-time optimisation without a priori knowledge of burst length. Starvation of low queues still needs a separate fix such as periodic priority boosting.
More Operating Systems questions
- A disk has an average seek time of 4 ms, rotational latency (average) of 3 ms, and a transfer rate that takes 1 ms per 4 KB block. What is…
- A disk rotates at 6000 RPM. What is the average rotational latency (time for half a rotation)?
- C-SCAN (Circular SCAN) differs from plain SCAN in which way?
- A disk has cylinders 0 to 199. Head is at cylinder 50, moving towards cylinder 199. Pending requests: 182, 20, 97, 64, 160. Using C-SCAN…
- A disk has cylinders 0 to 199. The head is at cylinder 50 and moving towards cylinder 0. Pending requests: 182, 20, 97, 64, 160. Using…
- Which statement correctly contrasts deadlock avoidance (Banker's algorithm) with deadlock detection-and-recovery?