Changes

Jump to: navigation, search

DPS921/Group 8

85 bytes added, 09:23, 26 November 2018
Synchronization
== Synchronization ==
The other way to eliminating false sharing is to implement a mutual exclusion construct. This the better method than using padding as there is no wasting of memory and cache lines are data access is not rendered inaccessible hindered due to being invalidatedcache line invalidation. Programming a mutual exclusion implementation is done by using the omp pragma criticalconstruct in an op environment. The critical section construct restricts statements to a single thread to process at a time, making variables local to a single threadensures that multiple threads do not write data to the same cache line.
=Conclusion =
42
edits

Navigation menu