Parallelizing with Tasks
When parallel loops or the flow graph are not sufficient, the oneAPI Threading Building Blocks (oneTBB)
library supports parallelization directly with tasks. Tasks
can be created using the function oneapi::tbb::parallel_invoke or
the class oneapi::tbb::task_group.