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

Discussion

Consider a computer with 8 Mbytes of main memory and a 128 K cache. The cache block size is 4 K. It uses a direct mapping scheme for cache management. How many different main memory blocks can map onto a given physical cache block ?

  • A.2048
  • B.256
  • C.64
  • D.8

Answer: C

Correct answer: 64

There are \( 8\ \text{MB}/4\ \text{KB} = 2048 \) main memory blocks and \( 128\ \text{KB}/4\ \text{KB} = 32 \) cache lines. With direct mapping each line is shared by

\[ \frac{2048}{32} = 64 \]

different memory blocks, so any two of those 64 compete for the same line.

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

Post your comment

Please log in or register to post a comment.