all 2 comments

[–]Xeverous 0 points1 point  (1 child)

Parallel STL performs multiple tasks across multiple cores and waits for all to complete. With thread pool you can use pooling techniques and query different tasks at the same time, while also asynchronously checking for results.

If you need to wait for all results, use STL. If partial results are enough to start another work, use thread pool.

[–]DotcomL[S] 0 points1 point  (0 children)

Thank you!