Changes

Jump to: navigation, search

GPU621/Analyzing False Sharing

3 bytes added, 15:11, 30 November 2022
Solutions Of False Sharing
The foremost reason why false sharing happens can be found in how operating systems read and write data. When a program reads or writes data from the hard drive or other sources at that time this data loads into a temporary cache. Because it is a very fast way to access it. This knows as a cache line.
= '''Solutions Of False Sharingsharing example''' === False sharing example ==
#include <thread>
#include <vector>
To our surprise, the serial block took much less time, no matter how many times I ran it. This turned our existing knowledge upside down, but don't worry, it's because you don't understand False Sharing yet.
= '''Solutions Of False Sharing''' =
== Use local variables for each thread ==
118
edits

Navigation menu