why C++ is not capable of threads ?
I would like to know
It is. Just #include <thread> In C++1x.
Or use Boost.Thread, if you can't use C++1x. The standard library header <thread> is taken from Boost.Thread (with slight differences).
because C++ creates process and java creates Threads
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.