Is it possible to have threads in C++ like you can in Java?
Sure you can have threads in C++. However, unlike Java, C++ uses external thread libraries for this purpose. For example, Windows programmers normally use the Win API thread functions or MFC classes; Unix and Linux programmers usually use the pthreads library. This ensures high performance and maximal flexibility because the underlying implementation of threads and their performance are platform-dependent.
To enable thread support, C++ provides the ‘volatile’ keyword and the sig_atomic_t data type.