CPU False Sharing
The motivation for this post comes from an interview question I was asked: What is CPU false sharing?
CPU Cache
Let’s start by discussing CPU cache.
CPU cache is a type of storage medium introduced to bridge the speed gap between the CPU and main memory. In the pyramid-shaped storage hierarchy, it is located just below CPU registers. Its capacity is much smaller than that of main memory, but its speed can be close to the processor’s frequency.