CS FundamentalsModerateAmazon · Microsoft MCQ pattern
Memory access time is 100 ns and servicing a page fault takes 10 ms. If 1 access in 1,000 causes a page fault, the effective access time is about:
- A. 10 ms
- B. 10.1 μs
- C. 1.1 μs
- D. 100.1 ns
Correct answer: B. 10.1 μs
EAT = 0.999 × 100 ns + 0.001 × 10,000,000 ns = 99.9 + 10,000 ≈ 10,100 ns ≈ 10.1 μs, a 100-fold slowdown. The common slip is to forget converting 10 ms to 10⁷ ns.
More Operating Systems questions
- Five processes P0–P4 and three resource types A, B, C. Allocation: P0 (1,0,1), P1 (2,1,1), P2 (0,1,2), P3 (1,1,0), P4 (0,0,2). Max: P0…
- Two processes must run statements S1 (in P1) and S2 (in P2) such that S2 never executes before S1. Using one semaphore sync, which is…
- A system has 32-bit virtual addresses, 4 KB pages and 4-byte page-table entries, and every page table must fit exactly in one page. How…
- A Unix-style inode has 12 direct pointers, 1 single-indirect and 1 double-indirect pointer. The block size is 1 KB and a block pointer is…
- Memory holes, in order, are 150 KB, 450 KB, 250 KB, 350 KB and 500 KB. Requests arrive in order: 240 KB, 410 KB, 130 KB, 380 KB. Which…
- What does this program print? (Assume fork() succeeds; the order of the two lines may vary.) c int x = 5; int main() { if (fork() == 0)…