Computer Science · Virtual Memory and Page Fault Handling
Which of the following correctly describes the exact sequence of steps executed by the system when a page fault occurs during a memory access?
- 1The operating system immediately restarts the CPU instruction, searches for a free frame in physical memory, loads the page from disk, and finally updates the page table entries to reflect the new memory location.
- 2Upon accessing an invalid page table entry, the CPU triggers a trap to the OS, which finds a free physical frame, loads the required page from disk into that frame, updates the valid-invalid bit, and restarts the instruction.✓
- 3The CPU detects a valid bit in the page table, searches the Translation Lookaside Buffer (TLB) for a frame, loads the data from the disk into the cache, and then informs the programmer about the successful memory allocation.
- 4The system identifies an external fragmentation error, initiates a compaction process to gather free memory, updates the physical addresses in the segment table, and then resumes the process from the beginning of the program.
Correct answer
Upon accessing an invalid page table entry, the CPU triggers a trap to the OS, which finds a free physical frame, loads the required page from disk into that frame, updates the valid-invalid bit, and restarts the instruction.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Virtual Memory and Page Fault Handling?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Virtual Memory and Page Fault Handling