Contents

Introduction

Explains how to use threads in Cocoa applications.

Organization of This Document

This document has the following chapters and appendixes:

About Threaded Programming introduces the concept of threads and their role in application design.

Thread Management provides information about the threading technologies in OS X and how you use them.

Run Loops provides information about how to manage event-processing loops in secondary threads.

Synchronization describes synchronization issues and the tools you use to prevent multiple threads from corrupting data or crashing your program.

Thread Safety Summary provides a high-level summary of the inherent thread safety of OS X and iOS and some of their key frameworks.

See Also

For information about the alternatives to threads, see Concurrency Programming Guide .

This document provides only a light coverage of the use of the POSIX threads API. For more information about the available POSIX thread routines, see the pthread man page. For a more in-depth explanation of POSIX threads and their usage, see Programming with POSIX Threads by David R. Butenhof.

Next

Copyright © 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-07-15