...

/

Single Threaded Summation: Protection with Atomics

Single Threaded Summation: Protection with Atomics

This lesson explains the solution for calculating the sum of a vector problem using atomics in C++.

We'll cover the following...

Accordingly, I have the same questions for atomics that I had for locks.

  1. How expensive is the synchronization of an atomic?
  2. How fast can an atomic be if there is no contention?

I have an additional ...