CS FundamentalsVery hardGATE CS (PYQ pattern)
A 3-level paging system has TLB lookup 20 ns and memory access 100 ns. On a TLB miss the three page-table levels are read from memory and then the data. The TLB hit ratio is 80%. In addition, 1 reference in every 100,000 (counted over all references) causes a page fault that costs an extra 10 ms. The effective access time, in ns, is closest to:
- A. 180
- B. 260
- C. 280
- D. 300
Correct answer: C. 280
Hit: 20 + 100 = 120. Miss: 20 + 3x100 + 100 = 420. Average = 0.8x120 + 0.2x420 = 180. Faults add 10^-5 x 10^7 ns = 100 ns, so 280. 180 ignores the faults.
More Operating Systems questions
- A system with a single-level page table has a TLB (lookup 10 ns, done before every access, hit ratio 90%) and a 100 ns memory; a TLB miss…
- Shared integer x = 1. Thread T1 executes x = x + 1; x = x + 1; and thread T2 executes x = x 2;. Each statement is compiled to a LOAD into…
- Semaphores a = 1, b = 0, c = 0. Four processes each run once: P1: wait(a); print 1; signal(b); signal(c). P2: wait(b); print 2; signal(a)…
- Round Robin with quantum 4 ms. Processes (arrival, burst) in ms: P1 (0, 7), P2 (1, 4), P3 (2, 9), P4 (3, 5), P5 (16, 3). A process that…
- Periodic tasks (execution time, period = deadline): T1 (2, 5), T2 (4, 7). Which statement is correct?
- Three periodic tasks (execution time, period = deadline) are given: A (1, 4), B (2, 6), C (3, 12). Which statement is correct?