You are not logged in.
I'm totally new to multithreading in C++, I just read something about the standard library approach (future, promise et al.) and about Intel TBB. I don't have a clear idea of the advantages of one approach vs the other; the mean-squared-opinion on the web seems to be in favor of TBB but I couldn't find an apple-to-apple comparison (maybe because they're different things?). So if there's anybody willing to help me with this before I start my experiments it could be of great help.
Thanks in advance.
Offline
https://en.wikipedia.org/wiki/List_of_C … _libraries indicates there are a lot more choices then just two .
Do you have previous experience with multithreaded programming ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Do you have previous experience with multithreaded programming ?
I do. Which is why I use Rust for it now.
https://bholley.net/blog/2015/must-be-t … -code.html
Last edited by schard (2023-11-17 15:12:40)
Offline
TBB is mostly useful if you need special features like flow graphs or work scheduling. Otherwise the standard library is fine.
The following book (though somewhat dated) gives a good comparison between different methods:
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Thanks to everybody. As I wrote I am an absolute beginner with MT, I just read the multithreading section of Stroustrup's book and starting to experiment. I'll go through the references you provided. I am bound to C++ for the time being so I'll give Rust a look in a later stage.
Offline