Thread Local Summation: Using Thread Local Data

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

Thread-local data belongs to the thread in which it was created; it will only be created when needed. Thread-local data is an ideal fit for the local summation variable tmpSum.

Get hands-on with 1000+ tech skills courses.