Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: C++
Expertise: Beginner
Jun 15, 2000



Application Security Testing: An Integral Part of DevOps

Threads in C++

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.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date