A cache line is a block-sized unit of memory that a processor cache transfers and tracks as a copy of main memory. When one thread updates shared data, another processor may still hold an older copy of the same cache line. section 3.1
Shared-memory updates expose several cache-line behaviors:
- Write-through mirrors an updated cache value back to main memory, but another CPU cache may still retain an outdated copy. section 3.1
- Caches can listen for bus update messages and either apply the change or invalidate the affected cache line. section 3.1
- Invalidation forces a later read to fetch a fresh copy from memory, while increasingly many processors make coherence more complex and costly. section 3.1
Follow the figure to visualize shared-variable updates across processor caches. section 3.1



