A CPU has a cache hit ratio of 0.9. If the cache access time is 1 cycle and the main memory access time is 10 cycles, what is the average memory access time?
Q1. A CPU has a cache hit ratio of 0.9. If the cache access time is 1 cycle and the main memory access time is 10 cycles, what is the average memory access time?
Answer: 1.9 cycles
Explanation: Average memory access time = (hit ratio * cache access time) + ((1 - hit ratio) * main memory access time) = (0.9 * 1) + (0.1 * 10) = 0.9 + 1 = 1.9 cycles.