# Opinion: Simple generic parallelism idiom & C++17 specifics

If you programmed something and it turns out to be too slow, often you’d like to farm out the work to multiple threads. At this point you typically have a few choices: use some kind of producer/consumer pipe half-ass it by dividing the work into n chunks and launch n threads and hope for the best rely on one of the magic parallelization solutions ( pragma omp) use (newfangled) language features All of these options are painful to some extent.

https://berthub.eu/articles/posts/simple-parallelism-idiom/

Publisher: Bert Hubert's writings — Opinion / commentary.

---

Canonical URL: https://qwibbit.com/q28821

Created: 2026-10-27T19:20:39.891485+00:00

Last edited: 2026-10-27T19:20:39.891485+00:00

Board: 3

Origin: Syndicated

Original source: https://berthub.eu/articles/posts/simple-parallelism-idiom/
