StreakPeaked· Practice

ExamsGATETechnical

Consider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?

  1. 2²¹
  2. 2²⁰
  3. 2²²
  4. 2²⁴

Correct answer: 2²¹

Solution

Logical address is 32 bits and page size is 2048=2^11 bytes, so the page-number field is 32-11=21 bits. The page table has at most 2^21 entries, not 2^22.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →