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