CS FundamentalsHardGATE CS
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 how often may a page fault occur?
- A. Once every 40,000 accesses
- B. Once every 4,000,000 accesses
- C. Once every 400,000 accesses
- D. Once every 4,000 accesses
Correct answer: C. Once every 400,000 accesses
Need (1 − p) × 200 + p × 8,000,000 ≤ 220, so p ≤ 20 / 7,999,800 ≈ 2.5 × 10⁻⁶, i.e. about one fault per 400,000 accesses. Disk-speed faults dominate even at tiny rates.
More Operating Systems questions
- 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…
- Banker's algorithm, resources (A, B, C). Available = (2, 2, 1). Allocation / Max: P0 (1,1,2)/(5,3,4), P1 (2,0,1)/(3,2,2), P2…
- Disk cylinders 0–199; the head is at 50 and the queue holds 82, 170, 43, 140, 24, 16, 190. What is the total head movement under SSTF?
- Disk cylinders 0–199; the head is at 50 moving toward higher cylinders; the queue holds 82, 170, 43, 140, 24, 16, 190. Counting the return…
- How many times is x printed? (Every fork() succeeds, and each print is an unbuffered write, so nothing is printed twice through copied…