3 ms·
There isn't one correct framework for threading in C++. Your use case will help drive which one will work the best. A lot of times OpenMP is all anyone every
by davismwfl 10y ago
There isn't one correct framework for threading in C++. Your use case will help drive which one will work the best. A lot of times OpenMP is all anyone every needs and it does the job really well and isn't that hard to figure out. But other times you need something different so maybe boost threads or another package. I'd typically stick with a more mature library over something fresh, mainly because things that have some miles and time on them are easier to predict what will happen. Yea you'll live with some tradeoffs usually but at least you have a better idea what you are getting. Not a dig on new libraries, I just like to stick to mature libraries for production products and keep new libraries to research and experiments.