Question: Consider the execution of the following program segment on an 88 array A. for i:= 0 to 7 do sum := 0 forj:= 0

Consider the execution of the following program segment on an 88 array A. for i:= 0 to 7 do sum := 0 forj:= 0

Consider the execution of the following program segment on an 88 array A. for i:= 0 to 7 do sum := 0 forj:= 0 to 7 do sum := sum + a(ij) end for ave(i):= sum/8 end for Assume that the main memory is divided into eight interleaved memory blocks and that each cache memory block consists of eight elements. Assume also that the cache memory access time is 10 ns and that the memory access time is ten times the cache memory access time. Compute the average access time per element of the array A.

Step by Step Solution

3.37 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To compute the average access time per element of the array A we need to consider the cache and main memory access times and how they interact with th... View full answer

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 Operating System Questions!