We use cookies on this website. To find out more about cookies and how they are used on this website, see our Privacy Policy.
By clicking ‘Continue’, you hereby agree with our use of cookies.

FAQ

What is the main difference between Write-through and Write-back?

The main difference between the two policies is that:

  1. Write-through, data is written to the cache and the corresponding main memory location at the same time. The cached data allows for fast retrieval on demand, while the same data in main memory ensures that nothing will get lost if any crash, power failure, or other system disruption occurs.
  2. Write-back, data is written to the cache every time a change occurs, but is written to the corresponding location in main memory only at specified intervals or under certain conditions. But it comes with the risk of data loss in case of any crash, power failure, or other system disruption occurs.
Created Date: 03/08/2018