Besides locality, false sharing also greatly affects the performance of programs.
除了局部性之外,伪共享也对程序的执行性能有着重要的影响。
参考来源 - 数据局部性及其编译优化技术研究
cache行抖动
·2,447,543篇论文数据,部分数据来源于NoteExpress
False sharing
abstract:In computer science, false sharing is a performance-degrading usage pattern that can arise in systems with distributed, coherent caches at the size of the smallest resource block managed by the caching mechanism. When a system participant attempts to periodically access data that will never be altered by another party, but that data shares a cache block with data that is altered, the caching protocol may force the first participant to reload the whole unit despite a lack of logical necessity.