CS FundamentalsHardGATE CS

A process accesses an address whose PTE has the valid bit clear. Which TWO situations are both possible, and how does the OS tell them apart?

  1. A. The page is dirty or clean; the OS checks the dirty bit
  2. B. The TLB is full or empty; the OS checks the TLB
  3. C. The page is on disk (legal, load it) or the address is outside the process's mapped regions (illegal, segmentation fault); the OS checks its own region list (e.g. VMAs)
  4. D. The page is shared or private; the OS checks the reference bit

Correct answer: C. The page is on disk (legal, load it) or the address is outside the process's mapped regions (illegal, segmentation fault); the OS checks its own region list (e.g. VMAs)

The PTE alone cannot distinguish 'not yet loaded' from 'never allocated'; the kernel consults its virtual-memory area descriptors to decide between servicing the fault and delivering SIGSEGV.

More Operating Systems questions

Exams that ask this topic