2,687 views

1 Answer

2 votes
2 votes
WRITE THROUGH POLICY:
CACHE and MAIN MEMORY is simultaneously updated.it eliminates the problem of CACHE coherence in SINGLE PROCESSOR SYSTEM.
here updation time will be Max(Cache time,memory time) which is memory time and is feasible only for less updations.
AVERAGE READ TIME=(hit ratio of read)*cache time+(1-HIT ratio read)(cache time + memory time)
AVERAGE WRITE TIME= (hit ratio of write)*(UPDATION TIME)+(1-hit ratio write) (updation time + memory time)

WRITE BACK POLICY:
whenever a block is choosen for replacement at that time main memory is updated.
here updation time depends on dirty bit concept
if dirty bit is 1 it means block in cache is modified so here block time (for incoming block) +( block time for updating block) + cache time
if dirty bit is 0 it means no modification is there  so we dnt need to update in that case block time for (incoming block) + cache time
this is how updation time is caclculated based on the dirty bit.

Related questions

1 votes
1 votes
1 answer
1
0 votes
0 votes
1 answer
4