介绍
Introduction
Threads are one of several technologies that make it possible to execute multiple code paths concurrently inside a single application. Although newer technologies such as operation objects and Grand Central Dispatch (GCD) provide a more modern and efficient infrastructure for implementing concurrency, OS X and iOS also provide interfaces for creating and managing threads.
This document provides an introduction to the thread packages available in OS X and shows you how to use them. This document also describes the relevant technologies provided to support threading and the synchronization of multithreaded code inside your application.
Important: If you are developing a new application, you are encouraged to investigate the alternative OS X technologies for implementing concurrency. This is especially true if you are not already familiar with the design techniques needed to implement a threaded application. These alternative technologies simplify the amount of work you have to do to implement concurrent paths of execution and offer much better performance than traditional threads. For information about these technologies, see Concurrency Programming Guide.
重要:如果你开发一个新应用,鼓励你去研究其他可选择的OS X 技术实现并发。 如果你对实现线程化应用的设计技术还不熟,我们尤其鼓励你这么做。其他可替代的技术简化了你实现并发的工作量,并且提供了比传统线程更好的性能。对于这些可替代技术的信息,你可以参考 Concurrency Programming Guide
iOS开发交流群146273732