A CPU has a cache memory with a hit rate of 95%. What is the average memory access time if the cache access time is 1ns and main memory access time is 10ns?
Q1. A CPU has a cache memory with a hit rate of 95%. What is the average memory access time if the cache access time is 1ns and main memory access time is 10ns?
Answer: 1.45ns
Explanation: Average memory access time = (hit rate * cache access time) + ((1 - hit rate) * main memory access time) = (0.95 * 1) + (0.05 * 10) = 1.45ns.