Paging, page tables, and page faults: When does a page fault occur?

Enhance your understanding with the System Software, Architecture, Memory and Storage Test. Study with flashcards and multiple choice questions. Each question offers hints and detailed explanations. Prepare effectively for your exam!

Multiple Choice

Paging, page tables, and page faults: When does a page fault occur?

Explanation:
In virtual memory, a page fault happens when a process accesses a virtual page that is not currently loaded into physical memory. The hardware traps to the operating system, which then loads the needed page from disk into RAM, updates the page table (and the TLB), and resumes execution. That makes the statement about the page not being in RAM, prompting loading from disk, the correct description. If the page is already in RAM, there’s no page fault because the translation can be completed directly. The CPU mode (privileged vs user) and whether a translation is currently in the TLB are not what define a page fault; a page fault is specifically about the page’s presence in physical memory.

In virtual memory, a page fault happens when a process accesses a virtual page that is not currently loaded into physical memory. The hardware traps to the operating system, which then loads the needed page from disk into RAM, updates the page table (and the TLB), and resumes execution. That makes the statement about the page not being in RAM, prompting loading from disk, the correct description.

If the page is already in RAM, there’s no page fault because the translation can be completed directly. The CPU mode (privileged vs user) and whether a translation is currently in the TLB are not what define a page fault; a page fault is specifically about the page’s presence in physical memory.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy