Learn Before
Concept

False Sharing in CPU Caches

False sharing is a severe performance degradation scenario in multi-core CPU caching. It occurs when a memory location cached on one processor core is subsequently requested by a thread running on a different processor core. To resolve this conflict, the first processor must halt its operations, write the cached information back to main memory, and allow the second processor to read it. This forced synchronization causes both processors to wait, potentially resulting in parallel code executing more slowly than an efficient single-processor implementation.

Image 0

0

1

Updated 2026-05-18

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L