Changes

Jump to: navigation, search

GPU621/Analyzing False Sharing

4 bytes added, 10:04, 26 November 2022
Example Of A False Sharing
# [mailto:sgpatel22@myseneca.ca?subject=GPU621 Shani Patel]
= '''Example Solutions Of A False Sharing''' === ==
#include <thread>
#include <vector>
So the problem of false sharing sometimes cannot be generalized, and the occurrence of false sharing does not necessarily make performance lower. But no matter how the new block is the optimal solution.
== example 2 Padding ==
If you think the above example is too limiting, not all cases can be abstracted to such a local variable. So let's let the two variables exist on different cache lines!
118
edits

Navigation menu