CS FundamentalsHardGATE CS
A multilevel feedback queue has Q0 (RR, quantum 2), Q1 (RR, quantum 4) and Q2 (FCFS); a job that uses its full quantum drops one level, and a lower queue runs only when all higher ones are empty. Jobs A (3), B (9) and C (5) all arrive at time 0 in that order. When does each finish?
- A. A 7, B 17, C 14
- B. A 7, B 14, C 17
- C. A 3, B 17, C 12
- D. A 9, B 17, C 14
Correct answer: A. A 7, B 17, C 14
Q0: A 0-2, B 2-4, C 4-6, all demoted. Q1: A 6-7 (done), B 7-11 (3 left, demoted), C 11-14 (done). Q2: B 14-17.
More Operating Systems questions
- Reference string: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9, 3 with 3 frames, initially empty. How many page faults occur under FIFO…
- For the reference string 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9, 3, going from 3 frames to 4 frames changes the FIFO fault count from…
- A system has 40-bit virtual addresses, 8 KB pages and 4-byte page-table entries, and every page-table level must fit in one page. How many…
- TLB lookup takes 10 ns and is done first; memory access takes 100 ns; paging is two-level; the TLB hit ratio is 90%. Ignoring page faults…
- Memory access takes 200 ns and servicing a page fault takes 8 ms. To keep the effective access time within 10% of 200 ns, at most about…
- A machine has 4 GB of physical memory with 4 KB frames. An inverted page table stores one 8-byte entry per frame. How large is the…