GATE Computer ScienceEasyGATE CS (PYQ pattern)

A cache with 8-word blocks is cold. A program reads an array of 1000 consecutive words once, starting at a block boundary. How many compulsory misses occur, and what is the hit ratio?

  1. A. 125 misses; 87.5%
  2. B. 124 misses; 87.6%
  3. C. 1000 misses; 0%
  4. D. 125 misses; 12.5%

Correct answer: A. 125 misses; 87.5%

1000 / 8 = 125 blocks, each missed once on its first word; 875 of 1000 reads hit, 87.5%.

More Computer Organization and Architecture questions

Exams that ask this topic