CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ
A CPU-bound process and an I/O-bound process share a single CPU under a multilevel feedback queue with priority boosting. What is the purpose of periodically boosting every process to the top queue?
- A. To give CPU-bound jobs the best possible response time
- B. To stop low-queue jobs starving and re-detect jobs turned interactive
- C. To reset the quantum of the top queue back to zero each time
- D. To merge all of the queues into one FCFS queue permanently
Correct answer: B. To stop low-queue jobs starving and re-detect jobs turned interactive
Without boosting, a steady stream of interactive jobs could starve the bottom queue forever, and a job whose behaviour changed would stay penalised. The boost resets everyone's priority periodically.
More Operating Systems questions
- Two processes each need two printers, and the system has exactly 3 printers; each requests its printers one at a time and holds them until…
- A file system uses 4 KB blocks. A file of 10,001 bytes is stored. How much space is lost to internal fragmentation in its last block?
- Statement 1: A context switch between two threads of the same process need not flush the TLB. Statement 2: A context switch between two…
- A process's page table has valid entries for pages 0-5 only. With 1 KB pages, which logical address causes a trap instead of a translation?
- A machine has 46-bit virtual addresses, 16 KB pages and 4-byte page-table entries. Lower page-table levels are full 16 KB pages; the top…
- A machine has 48-bit virtual addresses, 4 KB pages and 4 GB of physical memory and uses a hashed inverted page table. Each IPT entry (one…