सभी किताबें

पेशेवर

ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

Quantitative Finance · शब्दावली

False sharing क्या है?

Definition 3.5 Low-Latency Software · अध्याय 3 — Memory Hierarchy and Caches

False sharing occurs when two cores repeatedly write different variables that lie in the same cache line: neither shares data with the other, yet every write invalidates the other core’s copy and the line travels between them.

False sharing: two threads, pinned to two CPUs, each incrementing its own atomic counter 20 million times, with the counters on one cache line or on two. Measured on a laptop (Intel Core Ultra 7 155H) under WSL2, no isolated cores. Data: bench_mem.py.
Figure 3.3. False sharing: two threads, pinned to two CPUs, each incrementing its own atomic counter 20 million times, with the counters on one cache line or on two. Measured on a laptop (Intel Core Ultra 7 155H) under WSL2, no isolated cores. Data: bench_mem.py.
अध्याय में पढ़ें →