why C++ is not capable of threads ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

why C++ is not capable of threads ?

I would like to know

14th Jul 2016, 9:50 AM
విఠల్ N
4 Answers
+ 2
It is. Just #include <thread> In C++1x.
14th Jul 2016, 11:52 AM
this->getName()
+ 2
Or use Boost.Thread, if you can't use C++1x. The standard library header <thread> is taken from Boost.Thread (with slight differences).
14th Jul 2016, 12:10 PM
Stefan
Stefan - avatar
+ 2
because C++ creates process and java creates Threads
14th Jul 2016, 1:53 PM
vishal narang
vishal narang - avatar
+ 2
Vishal Narang this is plain wrong as this->getName () and me already pointed out. Pls refrain from spreading desinformation. Not all C++ versions can handle threads without a library, though.
14th Jul 2016, 2:48 PM
Stefan
Stefan - avatar