I’m on MacOSX, writing an app in C++.
What threading library should I use? pThreads? or is there something else?
Thanks!
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.
On MacOSX, POSIX threads in C/C++ and NSThread in Objective-C/C++ are the recommended solutions – see Thread Management for an overview.
In C++ though a cross-platform API as recommended by James is better if portability might ever become an issue.