CS FundamentalsVery hardGATE CS

A process's address space uses three-level paging with 9 bits per level and 4 KB pages (8-byte entries, so each table is one 4 KB page). It touches one page at virtual address 0 and one page at the very top of its 39-bit space. How many page-table pages exist?

  1. A. 3
  2. B. 6
  3. C. 4
  4. D. 5

Correct answer: D. 5

There is one top-level table. The two addresses differ in their top-level index, so each needs its own second-level table and its own third-level table: 1 + 2 + 2 = 5 pages.

More Operating Systems questions

Exams that ask this topic