2,037 views
2 votes
2 votes
Consider a system with the main memory access time as 200 ns and cache access time as 10 ns. Hit ratio for
read request is 0.8 and 80% of the memory requests are for read. If write through policy is used, then the
average time considering both read and write requests is _______.
a. 169.6 ns
b. 192.4 ns
c. 78.4 ns
d. None of these

1 Answer

3 votes
3 votes
Avg time= read request ( read hit*cache access time+ read miss*(main memory+cache access time)) + write request ( main memory)

Here write request* main memory is done because of write through cache so both cache and main memory Will be updated simultaneously and since main memory has large delay we have taken it

Avg time=0.8(.8*10+.2*210)+0.2*200=80 ns

Option D

unless not mention we have to take cache access time while calculating cache miss
edited by

No related questions found