Multi threading under OS X

Posted on 2004-10-22
Medium Priority
Last Modified: 2013-12-26
Hi All,

I want to use multi threading under MAC OS X using carbon (not cocoa).
What Mac library should I use?
Or any other C++ library that can be implemented under OS X.
I code with codeWarrior (C/C++)
I need sample code if possible?

Question by:bachra04
1 Comment
LVL 23

Accepted Solution

brettmjohnson earned 500 total points
ID: 12384274
The Carbon Thread Manager APIs provide cooperative multithreading
using the old-style Mac OS multithreading model:


There are also the POSIX compatible threads libraries.  But keep in mind that many of the
Carbon libraries (like Human Interface Toolbox functions) are not tolerant of preemptive

man pthreads


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
From store locators to asset tracking and route optimization, learn how leading companies are using Google Maps APIs throughout the customer journey to increase checkout conversions, boost user engagement, and optimize order fulfillment. Powered …

586 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question