Cache Writing Methods

Often, we don't only read the value of a variable but also change it. A dirty cache block is a cache block that has been modified (e.g., by having one of its variables changed) in the cache but not yet updated in the main memory.

There are two general approaches as to when we should update RAM with those changes. They are called cache write policies or methods:

Different computer architectures will benefit from different policies: the builders of an architecture need to run experiments to see which works faster on their particular computer.