Linked by Thom Holwerda on Fri 11th Sep 2009 14:15 UTC
Mac OS X One of the main new features in Apple's new Snow Leopard operating system has been released as open source. Apple has released the code of the userland portion of its Grand Central Dispatch technology under the Apache License, version 2. Mac OS X also has kernel support for Grand Central Dispatch, which is also released as open source via the XNU project. While we're at it, let's take this opportunity to look into exactly what Grand Central Dispatch is.
Permalink for comment 383659
To read all comments associated with this story, please click here.
RE[4]: The fun of threading...
by Stratoukos on Sat 12th Sep 2009 10:23 UTC in reply to "RE[3]: The fun of threading..."
Member since:

Avoid using locks. The support provided by dispatch queues and operation queues makes locks unnecessary in most situations. Instead of using locks to protect some shared resource, designate a serial queue (or use operation object dependencies) to execute tasks in the correct order.

That is from Apple's Concurrency Programming Guide. I am sure that GCD is using some locking mechanisms inside, but it abstracts them from the developer.

Reply Parent Score: 1