Exercise: break the sequential consistency

Solution

 

  • spinLockBreak.cpp