FAQ
What is the main difference between Write-through and Write-back?
The main difference between the two policies is that:
- 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.
- 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