Search⌘ K

Thread Local Summation: Using Tasks

Explore how to use tasks in modern C++ to calculate the sum of a vector without synchronization. Learn to employ promises and futures for partial summations executed in separate threads, while combining results safely on the main thread.

We'll cover the following...

Using tasks, we can do the whole job without synchronization. Each partial summation is performed in a separate thread and ...