retagged by
1,436 views
3 votes
3 votes
Consider a computer with 8 MB of main memory and a 128 KB cache. The cache block size is 4KB and it uses a direct mapping scheme for cache management. Total number of different main memory blocks can map onto a given physical cache block is _______
retagged by

1 Answer

Best answer
6 votes
6 votes
No. of blocks in main memory = 8MB / block size = 8MB/ 4KB = 2K.

No. of blocks in cache  = cache size/block size = 128 KB/ 4KB = 32

So, no. of different main memory blocks that can map to a given cache block = 2K / 32 (direct mapping is used)

= 64.
selected by
Answer:

Related questions

1 votes
1 votes
1 answer
2
4 votes
4 votes
1 answer
3
2 votes
2 votes
1 answer
4
Bikram asked Sep 3, 2016
266 views
An operating system contains 3 user processes each requiring 2 units of resource R. The minimum number of units of R such that no deadlocks will ever arise is ____ (assum...