CS FundamentalsHardGATE CS
Reference string: 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 3 frames, initially empty. What are the fault counts for FIFO, LRU and OPT?
- A. 7, 9, 6
- B. 9, 7, 7
- C. 8, 7, 6
- D. 9, 7, 6
Correct answer: D. 9, 7, 6
Simulation gives FIFO 9, LRU 7, OPT 6. Page 2 is reused often, which LRU exploits better than FIFO.
More Operating Systems questions
- Reference string: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many faults does LRU give with 3 frames and with 4 frames (initially empty)?
- A computer has 48-bit virtual addresses, 4 KB pages and 8-byte PTEs. With a single-level page table, how large would one process's table…
- x86-64 style 4-level paging: TLB lookup 1 ns, memory access 60 ns, TLB hit ratio 99%, no page-walk caches. What is the effective access…
- Physical memory is 64 MB with 4 KB frames; virtual addresses are 32-bit. Each PTE holds a frame number plus 4 control bits, and PTE size…
- A process has page-fault rate p. Memory access = 100 ns; fault service = 20 ms. To keep the effective access time below 200 ns, p must be…
- Cylinders 0–49, head at 20, previous request was at 25 (so the head is moving toward 0). Requests: 10, 22, 20, 2, 40, 6, 38. What is the…