Question: 6 . 4 0 Given the assumptions in Problem 6 . 3 8 , determine the cache performance of the following code: 1 for (

6.40
Given the assumptions in Problem 6.38, determine the cache performance of the
following code:
1 for (i =15; i >=0; i--){
2 for (j =15; j >=0; j--){
3 square[i][j].y =1;
4}
5}
6 for (i =15; i >=0; i--){
7 for (j =15; j >=0; j--){
8 square[i][j].c =0;
9 square[i][j].m =0;
10 square[i][j].k =0;
11}
12}
A. What is the total number of writes?
B. What is the total number of writes that hit in the cache?
C. What is the hit rate?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!