Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Multithreading on Mac OS X

I've recently read somewhere on the Web that Mac OS X has no concept of multithreadiing. I'm assuming from this that OS X uses some form of coarse-grained scheduling based on task/process. How does the Java VM run on OS X? Java apps rely on multithreading within the VM.

Thanks.

Windows Vista

Posted on Jun 2, 2009 8:35 AM

Reply
18 replies

Jun 3, 2009 6:56 AM in response to Allan Eckert

Actually, what OS X does not support is Thread Local Storage. At the extremity, if you need to spin off a bunch of threads that are based on the same function/method and if you don't have any need to share state between those threads, TLS simply makes each thread look like an independent method. But sharing state is the more common scenario in multithreading, so the OS can lend a very helping hand through its implementation of TLS there as well.

Jun 3, 2009 8:45 AM in response to a brody

I might ammend this post saying, there is a Developer forum where you can ask what Mac OS X does support, or how it supports a certain feature, rather than off the bat assume it does not support it. It is found here:

http://discussions.apple.com/forum.jspa?forumID=727

Additionally you can search the resources at http://developer.apple.com/

I found the above link about Thread Local Storage though with the help of Google.

I would encourage to you dispell any myths you've heard, by asking how to approach a technical issue, instead of saying it does not support XYZ.

Multithreading on Mac OS X

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.