CS FundamentalsModerateGATE CS
Reference string: 5, 3, 5, 2, 3, 5, 4, 3, 2, 5, 3, 2 with 3 frames under LRU (initially empty). What is the hit ratio?
- A. 6/12
- B. 5/12
- C. 7/12
- D. 8/12
Correct answer: A. 6/12
LRU causes 6 faults among 12 references, so hits = 6 and the hit ratio is 6/12.
More Operating Systems questions
- Which page-replacement algorithms are stack algorithms (the set of pages in memory with n frames is always a subset of the set with n + 1…
- A system has a 3-level page table and a TLB. TLB lookup = 20 ns, memory access = 100 ns, TLB hit ratio = 95%. The TLB is searched before…
- Memory access time is 100 ns, average page-fault service time is 8 ms, and the page-fault rate is 1 in 100,000 accesses. Ignoring TLB…
- Memory access takes 200 ns and a page fault takes 10 ms to service. To keep the effective access time within 10% of the memory access…
- A machine has 36-bit virtual addresses, 8 KB pages and 4-byte page-table entries. A two-level page table is used in which the inner page…
- A system has 32-bit virtual addresses, 1 GB of physical memory, 4 KB pages, and each page-table entry holds the frame number plus a valid…