Parallel & Vectorized Execution

This lesson explains parallel and vectorized execution policies, which were introduced in C++ 17, in detail.

Parallel & Vectorized Execution

Whether an algorithm runs in a parallel and vectorized way depends on many factors. For example, it depends on whether the CPU and the operating system support SIMD instructions. Additionally, it also depends on the compiler and​ the optimization level that you used to translate your code.

The following example shows a simple loop for creating a new vector.

Get hands-on with 1200+ tech skills courses.