The GATE Grind

GATE 2008 CS – Question 73

Computer Organization and Architecture · Memory Interfacing and Hierarchy · 2 marks · Multiple choice

A machine has a2-way set-associative64 KB cache, 16-byte blocks, 32-bit virtual addresses, 4 KB pages. double is8 bytes. ARR[1024][1024] begins at virtual-page0xFF000 and is row-major. Cache initially empty, no prefetch; only array stores access data memory. Code:

double ARR[1024][1024];
int i,j;
for(i=0;i<1024;i++)
 for(j=0;j<1024;j++) ARR[i][j]=0.0;

What is the cache hit ratio of the initialization loop?

  1. 0%
  2. 25%
  3. 50%
  4. 75%

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (C) 50%

Explanation

We are sorry we couldn't write detailed soluition for this, we are working on it!, please consider asking your own AI, its just 2-3 clicks with very minimum effort

More Memory Interfacing and Hierarchy questions

All Memory Interfacing and Hierarchy questions →