retagged by
1,261 views
1 votes
1 votes
A computer has a cache, main memory, and a disk used for virtual memory. If a referenced word is in the cache, 20 ns are required to access it. If it is in main memory but not in the cache, 60 ns are needed to load it into the cache, and then the reference is started again. If the word is not in main memory, 12 ms are required to fetch the word from disk, followed by 60 ns to copy it to the cache, and then the reference is started again.The cache hit ratio is 0.9 and the main memory hit ratio is 0.6.What is the average time in nanoseconds required to access a referenced word on this system.

According to me, the answer should be:-

Tavg = 0.9(20) + 0.1( 20 + 0.6(60+20) + 0.4(60+12ms +60+20)).

Please tell me whats wrong in this approach.
retagged by

1 Answer

Answer:

Related questions

1 votes
1 votes
1 answer
2
0 votes
0 votes
1 answer
3
rahul sharma 5 asked May 26, 2017
367 views
Please give definition for:-1. Principle of inclusion2. Cache coherence