I understand that in openMP programming data writing to shared variables needs specific rituals to prevent data racing conditions. But is a racing condition possible to happen in a purely reading from a variable scenario?
I understand that in openMP programming data writing to shared variables needs specific rituals
Share
While concurrent reading of memory locations is safe, concurrent reading from a data structure in general may lead to races, if reading updates some internal state. Two examples are splay trees (which do self-adjustment on read), and data structures that keep internal statistics for reads.