I would like to evaluate my threading options for a Visual C++ 2010 (non-managed) console application.
Can anybody suggest a good reference for the native Win32 threading API?
What non-native options are recommended?
Thanks!
Best,
Dave
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For non-native(really these just wrap the native options) options its basically between boost(now part of C++11) and pthreads. For native thread developement you have either WinAPI or CRT threads, thanks to some recent-ish bug fixes, WinAPI is your better option, which is basically
CreateThread, MSDN has all the documentation you need under the threading and synchronization sections, but I’d recommend using boost/C++11 threads just to make life simpler coding-wise.