If a cache has a hit rate of 95% and the access time is 2ns, what is the average memory access time if main memory access time is 20ns?
Q1. If a cache has a hit rate of 95% and the access time is 2ns, what is the average memory access time if main memory access time is 20ns?
Answer: 2.9ns
Explanation: Average access time = (hit rate * cache access time) + ((1 - hit rate) * main memory access time) = (0.95 * 2) + (0.05 * 20) = 1.9 + 1 = 2.9ns.