Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are threads part of standard C++?

Is there thread handling in new C++ standard? And if i will write multithreaded apps does it mean application will use more cores of cpu? ( if available )

like image 473
fex Avatar asked Nov 21 '25 17:11

fex


1 Answers

Is there thread handling in new C++ standard?

Yes, as of C++11 there is std::thread, std::async and others.

And if i will write multithreaded apps does it mean application will use more cores of cpu? ( if available )

Only if you use them right.

like image 97
K-ballo Avatar answered Nov 23 '25 05:11

K-ballo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!