Chapter 6Threading

Multithreading is one of the great double-edged swords of programming. If it’s done correctly, it can be a real boon to your application; done incorrectly, it leads to strange, unreproducible errors in the application. Multithreading has a tendency to polarize developers: they either swear that it’s necessary for any application to perform properly or declare it’s to be avoided at all costs. The truth, of course, is somewhere in the middle. Multithreading is a vital piece of the overall performance puzzle. While adding more threads won’t make your application automatically faster, it can make it “feel” faster to the user. That perception is what we’re going to focus on in this chapter.

It’s a common misconception among developers ...

Get Core Data in Objective-C, 3rd Edition 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.