...
/Single Threaded Summation: Protection with Locks
Single Threaded Summation: Protection with Locks
This lesson explains the solution for calculating the sum of a vector problem using locks in C++.
We'll cover the following...
If I protect access to the summation variable with a lock, I will get the answers to two questions.
- How expensive is the synchronization of a