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 ?
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.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development