Hello,

So windows has PPL for multithreading for loops, what's the linux equivalent to that?

Recommended Answers

OpenMP springs to mind, although it's not just for Linux.

Jump to Post

All 3 Replies

OpenMP springs to mind, although it's not just for Linux.

Other than OpenMP (as mentioned by Moschops), another cross-platform library that immediately springs to mind is Intels Threading Building Blocks (TBB) library.

Another vote for OpenMP. It's very easy, and supported by virtually all modern compilers on all platforms. It is turned on by a compiler option, and if not turned on (or not supported), the code just compiles the same but single-threaded, which is a great feature for portability.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.