Jump To:
Reference Library: Cocoa
Process management in Mac OS X facilitates the scheduling and execution of programs at runtime. The Cocoa environment provides programming interfaces for interacting with the operating system. Using these, developers can get process and host information, launch subprocesses, and pipe data between processes.

Document Descriptions
On Off
Display

Sort by
Title
Sorted by
Resource Type
Sort by
Date
Porting Multithreaded Applications from Win32 to Mac OS X (HTML)
Learn how Mac OS X handles multithreading, before porting your Win32 application.
Articles 2005-06-20
Threading Programming Guide (HTML) (PDF)
Explains how to use threads in Cocoa applications.
Guides 2008-02-08
Interacting with the Operating System (HTML) (PDF)
Explains how Cocoa applications manage tasks and get information about hosts and processes.
Guides 2006-04-04
Run Loops (HTML) (PDF)
Explains how Cocoa run loops process input.
Guides 2005-01-11
NSLock Class Reference (HTML) (PDF)
Describes the class for managing mutex-based locks.
Reference 2008-02-08
NSThread Class Reference (HTML) (PDF)
Describes the class for spawning secondary threads of execution.
Reference 2007-12-11
NSCondition Class Reference (HTML) (PDF)
Describes the methods for implementing a POSIX-style condition lock.
Reference 2007-04-30
NSOperation Class Reference (HTML) (PDF)
Describes the methods for managing encapsulated tasks.
Reference 2007-04-30
NSOperationQueue Class Reference (HTML) (PDF)
Describes the methods for managing operation objects.
Reference 2007-04-30
NSRecursiveLock Class Reference (HTML) (PDF)
Describes the class for managing a recursive version of a mutex.
Reference 2007-04-30
NSProcessInfo Class Reference (HTML) (PDF)
Describes the class that provides access to information about the current process.
Reference 2007-03-26
NSHost Class Reference (HTML) (PDF)
Describes the class used to get information about a network resource.
Reference 2007-03-24
NSTask Class Reference (HTML) (PDF)
Describes the class for launching other processes.
Reference 2007-01-31
NSDistributedLock Class Reference (HTML) (PDF)
Describes the class for managing locks that span multiple processes.
Reference 2007-01-22
NSLocking Protocol Reference (HTML) (PDF)
Describes the protocol used to support mutex and condition locks.
Reference 2007-01-22
NSConditionLock Class Reference (HTML) (PDF)
Describes the class for managing condition-based locks.
Reference 2007-01-15
PreLoginAgents (HTML) (DMG) (ZIP)
Pre-login launchd agents to display UI using AppKit and HIToolbox.
Sample Code 2007-10-26
NSOperationSample (HTML) (DMG) (ZIP)
Demonstrates how to use the NSOperation and NSOperationQueue classes.
Sample Code 2007-06-11
CrossEvents (HTML) (DMG) (ZIP)
Demonstrates how to send CarbonEvents and NSNotifications between Carbon and Cocoa.
Sample Code 2007-05-31
LoginItemsAE (HTML) (DMG) (ZIP)
Uses Apple events to manipulate the list of login items (items launched when you log in).
Sample Code 2005-10-17
SharedMemory (HTML) (DMG) (ZIP)
Shows how multiple applications can access the same memory using the Unix shmget system call.
Sample Code 2003-01-14
SimpleThreads (HTML) (DMG) (ZIP)
Uses the Cocoa threading APIs to coordinate multiple preemptively scheduled secondary threads with the non-reentrant Cocoa framework.
Sample Code 2003-01-14
TrivialThreads (HTML) (DMG) (ZIP)
Uses the Cocoa threading APIs to coordinate a preemptively scheduled secondary thread with the non-reentrant Cocoa framework.
Sample Code 2003-01-14
Observing Process Lifetimes Without Polling (HTML)
TN2050: Shows a variety of methods to observe process lifetimes without polling.
Technical Notes 2008-09-10
Daemons and Agents (HTML)
TN2083: Describes the most common problems encountered with daemons and agents, and suggests detailed solutions.
Technical Notes 2007-11-05
Using collection classes safely with multithreaded applications (HTML) (日本語 HTML)
TN2059: Describes some problems with and workarounds for using mutable collection classes in multithreaded applications.
Technical Notes 2002-09-10
Programmatically causing restart, shutdown and/or logout (HTML) (日本語 HTML)
QA1134: Describes how to programmatically cause restart, shutdown, sleep or logout.
Technical Q&As 2008-09-24
Determining console user login status (HTML)
QA1133: How to determine whether a user is logged in on the console, and be notified of changes.
Technical Q&As 2008-04-14
Customizing Process Stack Size (HTML)
QA1419: Describes methods for setting the stack size of a process and/or thread.
Technical Q&As 2008-02-20