Machine-translated by Google. Questions are authored in English.
Top

Discussion

A memory management system has 64 pages with page size of 512 bytes. Physical memory consists of 32 page frames. Number of bits required in logical and physical address are respectively :

  • A.14 and 15
  • B.14 and 29
  • C.15 and 14
  • D.16 and 32

Answer: C

The logical and physical addresses need 15 and 14 bits.

\[ \begin{aligned} \text{logical space} &= 64 \times 512 = 2^{6} \times 2^{9} = 2^{15} \\ \text{physical space} &= 32 \times 512 = 2^{5} \times 2^{9} = 2^{14} \end{aligned} \]

So a logical address needs 15 bits (6 for the page number and 9 for the offset) and a physical address 14 bits (5 for the frame number and 9 for the offset).

Option A reverses the two. 29 and 32 come from multiplying or adding the wrong quantities rather than taking logarithms.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.