The main memory of a computer has 2cm blocks while the cache has 2c blocks. If…
1999
The main memory of a computer has 2cm blocks while the cache has 2c blocks. If the cache uses the set associative mapping scheme with 2 blocks per set, then the block k of main memory maps to the set:
- A.
(k(mod m)) of the cache
- B.
(k(mod c)) of the cache
- C.
(k(mod 2c)) of the cache
- D.
(k(mod 2cm)) of the cache
Attempted by 143 students.
Show answer & explanation
Correct answer: B

A video solution is available for this question — log in and enroll to watch it.