engineering computer science MCQ #205

What is the average memory access time if the cache access time is 1 cycle, main memory access time is 5 cycles, and the hit ratio is 0.8?

engineering computer science MCQ #205

  1. Question 1

    Q1. What is the average memory access time if the cache access time is 1 cycle, main memory access time is 5 cycles, and the hit ratio is 0.8?

    • A) 1.8 cycles
    • B) 2 cycles
    • C) 1.2 cycles
    • D) 2.8 cycles

    Answer: 1.8 cycles

    Explanation: Average memory access time = (hit ratio * cache access time) + ((1 - hit ratio) * main memory access time) = (0.8 * 1) + (0.2 * 5) = 0.8 + 1 = 1.8 cycles.