oneTBB
The library abstracts all the thread handling from you, like the task scheduler and its thread pool.
Features (selection)
- tbb:task_group: Run tasks in parallel, waiting for them.
- tbb::parallel_for: Run a for-loop in parallel.
- tbb:flow::graph: Run tasks in parallel, following the DAG.
If you want to run tasks in a local scope and not in the global one you can use tbb::task_arena.
Specification: uxlfoundation.org
Alternatives
- OpenMP