Preface
?
Thread is one of several techniques that enables multiple code paths to run concurrently within the same app. While the new technology provides advanced, efficient tools for concurrent runs, such as Operation objects and GCD, OS X and iOS also provide an interface for creating and managing threads.
If we are developing a new app, we should first investigate concurrency in OS X (especially if you are unfamiliar with implementing multithreaded app technology). These new technologies, compared to traditional threads, can reduce the amount of concurrency and deliver more efficient performance. See Concurrency Programming Guide for more concurrency techniques. (subsequent translations will be available).
?
The document structure
?
This document has the following chapters and appendices: (subsequent translations)
- About threaded programming introduces the concepts of threading and their role in app design.
- Thread Management provides information about threading technology and how to use them.
- Run Loops provides information on how to manage the event loops in the minor (which can be understood as the main thread).
- Synchronization points to synchronization-related issues, as well as shows tools for programming to avoid damaging data or flashbacks when it comes to multithreading.
- Thread Safety Summary provides a summary of the high-level overview of thread safety in OSX and iOS and their critical frameworks.
?
Related
?
For more on threading options, see Concurrency Programming Guide. (subsequent translations will be available).
This document simply introduces the POSIX threads API and more about the available POSIX thread descriptions see Pthread home page. The deeper POSIX Threads and their use are described in programming with the POSIX Threads by David R. Butenhof.
IOS Threading Programming Guide Official Document translation first (preface)