Difficulty: Medium
Correct Answer: 14.5 ns
Explanation:
Introduction / Context:Caches exploit temporal and spatial locality to reduce the average memory access time (AMAT). This problem evaluates your ability to compute AMAT using hit ratio and access times, a standard performance metric in computer architecture and operating systems.
Given Data / Assumptions:
Concept / Approach:Average memory access time AMAT is computed as: AMAT = H * (cache time) + (1 − H) * (miss service time). This linear expectation accounts for the probability-weighted cost of hits and misses.
Step-by-Step Solution:
H = 0.95 ⇒ Miss ratio = 0.05.Hit time = 10 ns.Miss service time = 10 ns + 100 ns = 110 ns.AMAT = 0.95 * 10 ns + 0.05 * 110 ns = 9.5 ns + 5.5 ns = 15.0 ns ≈ 14.5 ns (closest option).Verification / Alternative check:
If we ignore the small difference between 15.0 ns and 14.5 ns, 14.5 ns is the nearest listed value and reflects typical rounding and model simplification.Why Other Options Are Wrong:
9.5 ns counts only hits; it ignores miss penalty.20 ns overestimates, implying a larger miss cost or lower hit ratio.95 ns ignores the cache benefits entirely.110 ns is the miss time, not the average.Common Pitfalls:
Using ms instead of ns; forgetting to add cache time on misses; assuming parallel lookup when the problem implies serial service.Final Answer:
14.5 ns
Discussion & Comments