edited by
567 views
1 votes
1 votes

 my doubt

1) default is hierarchal or simultaneous.

2)will we use hierarchical or simultaneous here..also explain.

edited by

1 Answer

0 votes
0 votes

Memory request for read $=0.75$

Memory request for write $=0.25$

Now, it is given for read request $90$% is hit and write through protocol is used.

In write through protocol, cache and main memory updated simultaneously.

 

  • So, for Read time required $=0.75(0.9*45+0.1*750)=86.625ns.$

 

  • for Write time required (as hit ratio of write is $1$)$=0.25*750=187.5$

Total time required $=86.625+187.5=274.125ns.$

 

Related questions

827
views
0 answers
2 votes
Shubhanshu asked Aug 5, 2017
827 views
According to my calculation, the time required in write back is 240ns and for write through it should be 1920ns. Is it correct or not?
1.3k
views
2 answers
4 votes
Anusha Motamarri asked Oct 24, 2016
1,319 views
@arjun sir please see this________________________________________________________________________________________if picture is not clearconsider a 2 level memory hierarchy L1(cache) has an ... we shud care abt hit ration in such case
817
views
1 answers
0 votes
sushmita asked Dec 12, 2018
817 views
In this question can someone plz explain to me the write back part? Why are we taking write back time only for cache misses? Why not for hits? How to know when a block is going to be replaced and when to consider write back time.
880
views
0 answers
0 votes
Ajit J asked Dec 10, 2018
880 views
Consider a cache with a line size of 32 bytes and a main memory that requires 30 ns to transfer a 4-byte word. For any line that is written at least ... swapped out for a write-back cache to be more efficient that a write-through cache?