Parallel Standard Library Algorithms
Explore how to implement parallel standard library algorithms introduced in C++17 by using execution policies. Understand the requirements for parallel execution, the differences from sequential algorithms, and learn best practices to write thread-safe, efficient parallel code for high-performance applications.
We'll cover the following...
Overview
As of C++17, the standard library has been extended with parallel versions of most, but not all, algorithms. Changing your algorithms to allow for parallel execution is simply a matter of adding a parameter that tells the algorithm which parallel execution policy to use.
As stressed earlier in this course, if our code base is based upon standard library algorithms, or at least if we have the habit of writing C++ by using algorithms, we will get an instant ...
Once we specify an ...