CS FundamentalsHardGATE CS (PYQ pattern)
A paged system has a TLB lookup time of 10 ns, a TLB hit ratio of 90% and a memory access time of 100 ns. A TLB miss needs one extra memory access to read the single-level page table. The page-fault probability per reference is 10⁻⁴ and a fault takes 8 ms to service. The effective access time is closest to:
- A. 120 ns
- B. 8,120 ns
- C. 1,020 ns
- D. 920 ns
Correct answer: D. 920 ns
Without faults: 0.9 × (10 + 100) + 0.1 × (10 + 100 + 100) = 120 ns. Adding faults: 0.9999 × 120 + 10⁻⁴ × 8,000,000 ns ≈ 920 ns. 8,120 ns would result from using a fault rate of 10⁻³.
More Operating Systems questions
- Semaphores S = 0 and T = 0 are shared. P1 executes: print A; signal(S); print B. P2 executes: wait(S); print C; signal(T). P3 executes…
- A Unix-style inode has 12 direct pointers, one single-indirect and one double-indirect pointer. Block size is 2 KB and a block pointer is…
- A process with pages numbered 0 to 4 references them in the order 0 4 0 1 3 4 0 1 4 0 2 0 4 1 3 2. Under FIFO replacement with initially…
- With 3 initially empty frames, the reference string 1 1 1 3 2 6 6 3 3 5 2 5 1 5 6 2 4 6 4 6 5 3 is processed under LRU and under the…
- A process makes 18 page references (times 1 to 18): 2 4 4 3 4 2 4 5 2 5 5 2 1 1 3 5 4 1. The working set W(t, 5) is the set of distinct…
- A multilevel feedback queue has three queues: Q0 (round robin, quantum 4 ms), Q1 (round robin, quantum 8 ms) and Q2 (FCFS). Queues are…