edited by
12,036 views
14 14 votes

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^{21}$
  2. $2^{20}$
  3. $2^{22}$
  4. $2^{24}$

3 Answers

19 19 votes

Answer- A.

1 1 vote

The logical address size is given as 32 bits, which means the total logical address space is $2^{32}$ bytes since the memory is byte-addressable.

The page size is 2048 bytes, which can be written in powers of 2 as:

$$\text{Page Size} = 2048 \text{ bytes} = 2^{11} \text{ bytes}$$

The number of bits required for the page offset is 11 bits.

The number of bits required for the page number can be found by subtracting the page offset bits from the total logical address bits:

$$\text{Page Number bits} = 32 - 11 = 21 \text{ bits}$$

Alternatively, you can directly find the total number of pages by dividing the total logical address space by the page size:

$$\text{Total Pages} = \frac{2^{32}}{2^{11}} = 2^{21}$$

Since each page needs exactly one dedicated entry in the page table, the maximum number of entries in the page table is equal to the total number of pages, which is $2^{21}$.

Correct Option: A

Answer:
Position:
Show:

Related questions

81 81 votes
3 3 answers
14.2k
14.2k views
Arjun asked Feb 27, 2025
14,219 views
Ravi had _______ younger brother who taught at _________ university. He was widely regarded as ________ honorable man.Select the option with the correct sequence of artic...
19 19 votes
3 3 answers
5.8k
5.8k views
Arjun asked Feb 27, 2025
5,833 views
The CEO's decision to downsize the workforce was considered $\underline{myopic}$ because it sacrificed long-term stability to accommodate short-term gains.Select the most...
32 32 votes
4 4 answers
7.2k
7.2k views
Arjun asked Feb 27, 2025
7,213 views
According to the map shown in the figure, which one of the following statements is correct?Note: The figure shown is representative. The library is located to the northwe...
16 16 votes
5 5 answers
18.2k
18.2k views
Arjun asked Feb 27, 2025
18,184 views
A fair six-faced dice, with the faces labelled ‘ $1$ ’, ‘ $2$ ’, ‘ $3$ ’, ‘ $4$ ’, ‘ $5$ ’, and ‘ $6$ ’, is rolled thrice. What is the probability of rolling ‘ $6$ ’ exa...