CS FundamentalsHardAmazon · Microsoft MCQ pattern
Memory access takes 100 ns and a page fault takes 5 ms to service. For the effective access time to be at most 20% slower than a fault-free access, the page-fault rate must be at most about:
- A. 1 in 2,500,000
- B. 1 in 2,500
- C. 1 in 250,000
- D. 1 in 25,000
Correct answer: C. 1 in 250,000
EAT = 100 + p(5,000,000 − 100) ≤ 120 ns, so p ≤ 20/4,999,900 ≈ 4 × 10⁻⁶, about 1 fault per 250,000 accesses. Forgetting that 5 ms = 5 × 10⁶ ns gives wrong options by factors of 1000.
More Operating Systems questions
- A machine has 1 GB of physical memory, 4 KB pages, 64-bit virtual addresses and an inverted page table. How many entries does the inverted…
- How many of the following statements are correct? 1. Increasing the degree of multiprogramming always increases CPU utilisation. 2…
- Cylinders 0–199, head at 72 currently moving towards cylinder 0. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under SCAN, what is the…
- Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under C-SCAN, counting the…
- Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Which two algorithms give the…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms), scheduled by SRTF. Not…