CS FundamentalsVery hardGATE CS
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 13 to how many, and LRU from 13 to how many?
- A. FIFO 13, LRU 12
- B. FIFO 12, LRU 12
- C. FIFO 14, LRU 12
- D. FIFO 12, LRU 11
Correct answer: A. FIFO 13, LRU 12
With 4 frames FIFO still faults 13 times (no gain, though no Belady anomaly either) while LRU drops to 12. As a stack algorithm LRU can never get worse with more frames; FIFO can stay the same or even rise.
More Operating Systems questions
- 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…
- Pages are 1 KB and a process's page table maps pages 0, 1, 2, 3 to frames 5, 9, 2, 7. What physical address does logical address 3100 map…
- Banker's algorithm, resources (A, B, C). Available = (2, 2, 1). Allocation / Max: P0 (1,1,2)/(5,3,4), P1 (2,0,1)/(3,2,2), P2…