ISRO | ISRO CS 2017 – May | Question 21

A cache memory needs an access time of 30 ns and main memory 150 ns, what is the average access time of CPU (assume hit ratio = 80%)?
(A) 60
(B) 30
(C) 150
(D) 70


Answer: (A)

Explanation: Hit ratio of cache = Hcache = 0.8
Tcache = 30 ns
Tmemory = 150 ns
CPU access time = Hcache * Tcache + (1 – Hcache)(Tcache + Tmemory) = 0.8 * 30 + 0.2 * (30 + 150) = 60 ns
So, option (A) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.