The Gateway to Computer Science Excellence
0 votes
Consider Prof. Vamshias writes a program given below and run on system which has 2-way set associative 16 KB data cache with 32 bytes block where each word size is 32 bits and LRU replacement policy used. If base address of array is 0 and initially cache is empty then the number of data cache misses are there ________. (Assume integer takes 4 bytes)

int i,a[1024*1024],x=0;


    x +=a[i] + a[1024 * i];



i am getting 1151 but answer given is 1279
in CO and Architecture by (29 points) | 25 views
yes you are right answer will be 1151.

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,385 answers
105,368 users