Chapter 15. Threads

Java was one of the first programming languages to support threads and thread synchronization directly. It was a very forward-looking decision. Multicore, multiprocessor computer systems have become the norm, rather than the exception. Efficient multi-threaded programming is now essential to effective program development, and it's a trend that continues to accelerate.

Threads and semaphores are conceptually simple, and the high-level differences between Java and Objective-C are trivial. Objective-C also makes extensive use of run loops, which transform a thread into an event processor. Beyond the basic @synchronize directive built into the language, the Cocoa framework provides a number of additional synchronization tools, each ...

Get Learn Objective-C for Java Developers 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.