engineering computer science MCQ #23

What is the hit ratio if a cache access takes 1 cycle, miss penalty is 5 cycles, and average memory access time is 2 cycles?

engineering computer science MCQ #23

  1. Question 1

    Q1. What is the hit ratio if a cache access takes 1 cycle, miss penalty is 5 cycles, and average memory access time is 2 cycles?

    • A) 0.25
    • B) 0.5
    • C) 0.75
    • D) 0.9

    Answer: 0.75

    Explanation: Using the formula: Average Access Time = Hit Ratio * Cache Access Time + (1 - Hit Ratio) * (Cache Access Time + Miss Penalty), we get 2 = Hit Ratio * 1 + (1 - Hit Ratio) * (1 + 5). Solving for Hit Ratio gives 0.75.