线程编程指南 Threading Programming Guide (1)[苹果官方文档的翻译]

介绍

   线程是并发执行单一应用内多个代码路径的技术之一。尽管 operation objects 和 Grand Central Dispatch (GCD) 之类的新技术为实现并发提供了更现代更有效的框架,OS X 和iOS 也提供了创建和管理线程的接口。

   这个文档介绍了OS X上可用的线程包,并且告诉你如何使用他们。文档同时也提供了支持线程和多线程代码同步的相关技术。

重要:如果你开发一个新应用,鼓励你去研究其他可选择的OS X 技术实现并发。 如果你对实现线程化应用的设计技术还不熟,我们尤其鼓励你这么做。其他可替代的技术简化了你实现并发的工作量,并且提供了比传统线程更好的性能。对于这些可替代技术的信息,你可以参考 Concurrency Programming Guide

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值