Jacob’s Tech Tavern

Jacob’s Tech Tavern

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
Tasks vs Threads
Copy link
Facebook
Email
Notes
More

Tasks vs Threads

Low-level process management never changes.

Jacob Bartlett's avatar
Jacob Bartlett
Apr 01, 2025
∙ Paid
13

Share this post

Jacob’s Tech Tavern
Jacob’s Tech Tavern
Tasks vs Threads
Copy link
Facebook
Email
Notes
More
3
Share

Today, we’re going to look at the power of the old-school Thread APIs, and demonstrate how much it has in common with Tasks, the modern building block of Swift Concurrency.

Back when I was a fresh-faced junior, we had a really smart engineer on my team, Jeff. I asked him to explain iOS concurrency to my graduate cohort, and he explained there were 3 levels of abstraction:

  1. Operation & OperationQueue at the top-level, with advanced functionality.

  2. GCD as your bread-and-butter for basic concurrency workloads.

  3. Thread for low-level precise management of actual threads.

My impostor-syndrome-riddled brain filled in the blanks: I knew any time I heard “low-level” it meant “for geniuses”.

The Thread API was out-of-bounds, for the really smart engineers.

Until today.

It wasn’t until I started writing this piece that I realised, a lot of the APIs available in Thread are copied by the Task in Swift Concurrency. By comparing them, we can understand both at a deeper level.

Subscribe to Jacob’s Tech Tavern for free to get ludicrously in-depth articles on iOS, Swift, tech, & indie projects in your inbox every week.

Paid subscribers get full access to this article, plus my full Quick Hacks library. You’ll also get all my long-form content 3 weeks before anyone else.

Still unsure? How about a 2 week free trial?

Get 14 day free trial

Keep reading with a 7-day free trial

Subscribe to Jacob’s Tech Tavern to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Jacob Bartlett
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More