How does a Multi-level Feedback Queue work to balance the needs of I/O-bound and CPU-bound processes?
Last updated
MLFQ (Multi-level Feedback Queue) uses several priority queues: higher queues have smaller time quanta, and the highest non-empty queue is served first.
A process that uses its full quantum is treated as CPU-bound and demoted. One that blocks early for I/O stays high, keeping interactive jobs responsive.
CPU-bound jobs run in lower queues with long quanta, and aging (periodic priority boosts) prevents their starvation.