1. Engineering
  2. Computer Science
  3. consider the following code for i 0 i...

Question: consider the following code for i 0 i...

Question details

Consider the following code: for (i 0; i< 20; i++) for (j - 0; j< 10; j++) ali] alil *j a. Give one example of the spatial locality in the code. b. Give one example of the temporal locality in the code. 4. 5. Consider a memory system with the following parameters: Tc 100 ns Cc 0.01 cents/bit Tm 1,200 ns Cm-0.001 cents/bit a. What is the cost of 1 MByte of main memory? b. What is the cost of 1 MByte of main memory using cache memory technology? C. If the effective access time is 10% greater than the cache access time, what is the hit ratio H?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution