CS FundamentalsModerateTCS NQT · Infosys pattern
Which statement about a page fault is correct?
- A. It is handled entirely by the MMU without involving the OS
- B. It means the process tried to access an illegal address and is always terminated
- C. It occurs when the TLB misses
- D. It occurs when the referenced page is valid but not currently in main memory
Correct answer: D. It occurs when the referenced page is valid but not currently in main memory
A page fault traps to the OS when the valid page is not resident; the OS loads it and restarts the instruction. A TLB miss is resolved by walking the page table and need not be a page fault; an invalid address is a different trap (segmentation fault).
More Operating Systems questions
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Using preemptive SJF…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Using Round Robin with…
- Cylinders 0–199, head at 72. Requests: 110, 25, 160, 47, 130, 8, 95, 185. What is the total head movement under SSTF?
- Reference string: 3, 1, 4, 3, 2, 1, 5, 3, 4, 1, 2, 5, 4. With 3 frames, initially empty, how many page faults does FIFO produce?
- A paging system with a single-level page table has a TLB lookup time of 10 ns, a memory access time of 80 ns, and a TLB hit ratio of 85%…
- 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…