MAC:Threading
lastmod 2026-11-10created 2014-03-042 edits
macOS Threading covers how to create and synchronize multiple threads in Cocoa applications. Threads can be created directly with NSThread and POSIX threads, but Apple recommends Grand Central Dispatch and NSOperation, which leave thread management to the system. UI updates must be done only on the main thread, and shared data is protected with locks or serial queues.