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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access