Question:

Given the following information: 
The logical address (L.A.) is 32 bits. The physical address (P.A.) is 20 bits. The page size (P.S.) is 2048 bytes (2 KB). What is the maximum number of entries in the page table?

Show Hint

To calculate the number of entries in a page table, divide the total logical address space by the page size to get the number of pages. The number of entries is equal to the number of pages.

Updated On: Feb 14, 2025
  • \( 2^{10} \) 

  • \( 2^{12} \) 

  • \( 2^{20} \) 

  • \( 2^{22} \) 

Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understanding the Address Breakdown 
- The logical address space is 32 bits, meaning the total addressable space is \( 2^{32} \) bytes. 
- The physical address space is 20 bits, meaning the total addressable space in physical memory is \( 2^{20} \) bytes. 

Step 2: Page Size Calculation 
- The page size is 2048 bytes, which is \( 2^{11} \) bytes. 

Step 3: Number of Pages in the Logical Address Space 
- The number of pages in the logical address space is: \[ \frac{2^{32}}{2^{11}} = 2^{21} \] 

Step 4: Number of Frames in the Physical Address Space 
- The number of frames in the physical address space is: \[ \frac{2^{20}}{2^{11}} = 2^{9} \] 

Step 5: Number of Entries in the Page Table - The number of entries in the page table is equal to the number of pages in the logical address space, which is \( 2^{21} \). 

Thus, the correct answer is (B).

Was this answer helpful?
0
0