Computer Architecture and Design Question:
Download Questions PDF

Whats the difference between Write-Through and Write-Back Caches? Explain advantages and disadvantages of each?

Computer Architecture Interview Question
Computer Architecture Interview Question

Answer:

The comparison can be made out of two factors

1) Performance and
2) Integrity of Data

Write through is better in integrity as it will flush for each writes.
Write back holds up the write till the same cache line has to be used up for a read, which question the data integrity when multiple processors access the same region of data using its own internal cache.

Write Back - gives a good performance, as it save many memory write cycles /write.

Write Through - Doesn't give this performance compared to the write-back.

Download Computer Architecture Interview Questions And Answers PDF

Previous QuestionNext Question
How do you handle precise exceptions or interrupts?Explain What is Virtual Memory?