Apple Posts Developer Tutorial on Threading
June 25th, 2008 at 3:00 PM - News by John Martellaro
Apple posted an article at the Apple Developer Connection (ADC) Website on Thursday entitled: "Managing Concurrency with NSOperation." The tutorial explains techniques that allow developers to make better use of multi-core Macs.
"Recent years have seen an end to the continual rise of processor clock speeds, and a move toward multi-core as the way forward. This trend has implications for software developers, because in order to make use of the extra processing power available in multi-core systems, you have to rewrite parts of your application to work concurrently.
"Even if you do not need that extra number-crunching performance in your app, there are many operations such as downloading files that can be more efficient when performed simultaneously," the tutorial explained.
The key is to avoid the lower level threading APIs and use NSOperation and NSOperationQueue classes.
The article explains: "The NSOperation and NSOperationQueue classes alleviate much of the pain of multi-threading, allowing you to simply define your tasks, set any dependencies that exist, and fire them off."
The tutorial has plenty of code examples and should help any developer get that application pumping on all available cores, especially in the Mac Pro which can have up to eight.
Note: the tutorial is located in the public section of the ADC Website and doesnit require an ADC membership to view.
Recent Headlines - Updated February 9th
- Tue, 3:28 PM
- News - Google Lowers Nexus One “Equipment Recovery Fee” to $150
- 2:27 PM
- Deal Brothers - Refurbished 13” MacBook 2.13GHz Intel Core 2 Duo: $749
- 1:31 PM
- Jeff Gamet's Blog - Macworld Expo: It’s Our Show, Not Apple’s
- 10:38 AM
- Quick Look Review - Texas Tea for the iPhone and iPod touch
- 10:25 AM
- News - Apple Rolls Out Aperture 3 Video Tutorials
- 10:00 AM
- Hot Forum Topic - Backing Up Your iPhoto Library
- 9:35 AM
- Product News - Notebook, iThoughts Add TextExpander touch Support
- 9:00 AM
- Hidden Dimensions - The Killer Surprises Waiting for Steve Ballmer
- 8:50 AM
- Product News - Aperture 3 Adds Faces Support, More [Updated]
- 8:30 AM
- TMO Quick Tip - Fixing iPhone and MobileMe Sync Headaches
- 8:12 AM
- News - Apple Store Offline, Rumors Point to New Laptops
- 8:00 AM
- TMO Appearances - TMO’s Bryan Chaffin and the Atomic Love Bombs Perform During Macworld Expo
The Mac Observer Reader Specials
- TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
RamJet Memory: Mac Pro 8GB Kit $275.99, Mac Pro 4GB Kits $145.99! Sale on MacBook and MacBook Pro 8GB kits $459.99! MacBook, MacBook Pro, iMac Mac mini 4GB Kits for $113.99! 1TB SATA Hard Drives for $109.99! Click here- If you own a car, you need CarMD! Catch problems, estimate repairs and more. Now for Mac. $98.99 at www.CarMD.com Save $10 with code TMO1.
If you're using a Mac, then you've gotta check out Full Tilt Poker for Mac. This Full Tilt Poker bonus code does the unthinkable, it actually rewards!For the latest Apple products use Ciao, a price comparison website, to find laptops like MacBook Air. Then find the best prices on MP3 players and use our comparison tool to evaluate mobile phones like the Apple iPhone.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.



2nd Gen. Refurbished 16GB iPod touch: $199.00 Delivered - Tons of Refurb iPod Deals!
