21Operations
As you saw in Chapter 10: Performance Tuning, multiple processors in a single computer are a fact of life today. CPU manufacturers cannot scale processor speed as they have in the past, so they are putting their transistors into more CPU cores. Getting the best performance out of today’s systems requires parallel programming, which usually means using threads. Threaded programming is difficult and error prone, making it harder and more expensive to take full advantage of the processing power of today’s systems
Mac OS X 10.5 introduced some classes that simplify some kinds of parallel programming. The NSOperation class represents a unit of parallelizable work, and the NSOperationQueue class takes NSOperations and executes them. Even ...
Get Advanced Mac OS X Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.