CS FundamentalsVery hardGATE CS
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, LRU and OPT respectively?
- A. 13, 12, 10
- B. 12, 13, 10
- C. 13, 13, 11
- D. 13, 13, 10
Correct answer: D. 13, 13, 10
Simulating gives 13 faults for FIFO and also 13 for LRU (only the repeated 1, 5, 5 and 9 hit under LRU), while OPT faults 10 times. LRU is not guaranteed to beat FIFO on a particular string.
More Operating Systems questions
- 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…
- 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…