HPC Magazine March 2014 - An Introduction to Performance Programming - part II.

Listing 4 - False sharing.


typedef struct {
  int neg;
#ifdef NOCONFLICT
  int pad[15];
#endif
  int pos;
} counters;