For C++ MacOSX app, what threading library to use?

c++, macos, multithreading

Solution

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.

Problem

I'm on MacOSX, writing an app in C++. What threading library should I use? pThreads? or is there something else? Thanks!

Original source