112k views
1 vote
Suppose a computer has 236 bytes of byte-addressable main memory and a cache size of 216 bytes, and each cache block contains 64 bytes.

How many blocks of main memory are there?
a) 3.6875 blocks
b) 4 blocks
c) 5 blocks
d) 6 blocks

User Levi Cowan
by
8.0k points

1 Answer

5 votes

Final answer:

There are 2^30 blocks of main memory in the described computer system, which is a result not corresponding to the provided options. The calculation is based on the total memory and block size, where 2^36 bytes of memory are divided by 64 bytes per block.

Step-by-step explanation:

To determine the number of blocks of main memory, you must consider the total memory size and the block size. The computer has 236 bytes of main memory, and each cache block contains 64 bytes. To find out how many blocks there are, you divide the total number of bytes by the size of each block.The calculation would be as follows: 236 bytes / 64 bytes per block = 236 / 26 = 230 blocks.So, there are 230 blocks of main memory, which is not equal to any of the options provided (a) 3.6875 blocks (b) 4 blocks (c) 5 blocks (d) 6 blocks. The options may be typos, as none of them align with the calculation presented here.The unit for one million bytes is a megabyte (MB), and it falls under the category of multiplicative prefixes used for units of computer memory.

User Arcturus B
by
8.7k points