Example: single-threaded summation

  • calculateWithLoop.cpp
  • calculateWithStd.cpp
  • calculateWithLock.cpp
  • calculateWithAtomic.cpp