Using Parallel Algorithms
Explore how to apply parallel algorithms in C++17 to enhance the performance of CSV reading tasks. Understand how to process lines and perform calculations in parallel, and learn about limitations regarding exception handling and compiler support.
We'll cover the following...
We'll cover the following...
Previously the code was executed in a sequenced way. We can illustrate it in the following diagram:
We open each file, process it, calculate, then we go to another file. All this happens on a single thread.
However, there are several places we can consider using parallel algorithms:
- Each file can be processed