42
edits
Changes
→Padding
We will now explore two typical ways to deal with false sharing in an OMP environment.
== '''Padding ''' ==
One way to eliminating false sharing is to add in padding to the data. The idea of padding in general is for memory alignment, by utilizing padding we can eliminate cache line invalidation interfering with read and write of elements.