Topic: Operating Systems
In hierarchical Paging implementation for a 64 bit address space, if 2nd outer page table is with 32 bit page numbers and 12 bit page offset, with equal size page numbers for outer page and inner page table, the page number for outer / inner page table is
- A. 20bits
- B. 64bits
- C. 32bits
- D. 10bits
Answer: D. 10bits
Explanation: The total address space is 64 bits. The page offset is 12 bits, leaving $64 - 12 = 52$ bits for the total logical page number. Let the three levels of page tables be $p_1$ (outer), $p_2$ (2nd outer/middle), and $p_3$ (inner). We are given $p_2 = 32$ bits and $p_1 = p_3$. Therefore, $p_1 + 32 + p_1 = 52 \implies 2p_1 = 20 \implies p_1 = 10$. The outer and inner page tables require 10 bits each.