Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This problem explores the problem of thrashing in different types of cache. Cons

ID: 650798 • Letter: T

Question

This problem explores the problem of thrashing in different types of cache. Consider a system of 12Kbytes of main memory partitioned into blocks of 1Kbytes each. The system has cache of size 4Kbytes. The main memory blocks are being accessed in the following order: 2, 6, 10, 6, 10, 2, 10, 2 (the numbers are in decimal). Assuming the cache is empty at the start. Show whether each memory block access is a hit or a miss. Then, compute the hit ratio for each of the following cases.

The system uses directly mapped cache;

Memory Block

Maps to Cache Block

Hit/Miss

2

6

10

6

10

2

10

2

Hit ratio:

Memory Block

Maps to Cache Block

Hit/Miss

2

6

10

6

10

2

10

2

Hit ratio:

Explanation / Answer

hit ratio is:

0.95

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote