-
Notifications
You must be signed in to change notification settings - Fork 0
Home
rebeloper edited this page Jul 12, 2026
·
2 revisions
This tutorial walks through Grand Central Dispatch (GCD) in a carefully structured progression:
- Why GCD Exists
- Thread vs Queue
- Queue (Serial vs Concurrent)
- Sync vs Async
- Main Queue & Global Queues
- Quality of Service (QoS)
- DispatchWorkItem
- Deadlocks
- Delaying Work (asyncAfter / DispatchTime)
- DispatchGroup
- DispatchSemaphore
- Barriers
- Target Queues
- Data Races & Thread Safety
- Locks (NSLock / os_unfair_lock)
- The Thread Explosion Problem
- concurrentPerform
- DispatchSource (timers & monitoring)
- Cancellation in GCD
- Callback Chains & Callback Hell
- Common GCD Gotchas
- How Everything Fits Together
- From GCD to Swift Concurrency
By following this path, you'll go from:
👉 "GCD is a pile of confusing APIs 😵" to 👉 "I understand the mechanics async/await is built on 💡"
This is a companion series to SwiftConcurrencyExplained — read this one first for the low-level foundation, then that one for the modern high-level model.