Your next career begins with
Save 50% off your seat in our next iOS Bootcamp. Limited time only. Sessions start April 3.
Concurrency by Tutorials
The book that teaches you everything there is to know about how to write performant and concurrent code for your iOS apps. By Scott Grosch.
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Who is this for?
This book is for intermediate iOS developers who already know the basics of iOS and Swift development but want to learn how to make their app efficiently perform tasks without affecting performance, and how to properly divide work to utilize hardware to the fullest extent.
Covered concepts
- Grand central dispatch
- Operations and operation queues
- Common concurrency problems
- Threads and thread sanitizer
Dive Into Concurrency in Your iOS Apps!
Learn what is Concurrency and why would you even want to utilize it in your apps? Learn about Grand Central Dispatch, Apple’s implementation of C’s libdispatch, also known as GCD, as it’s one of the simplest ways to queue up tasks to be...
moreDive Into Concurrency in Your iOS Apps!
Learn what is Concurrency and why would you even want to utilize it in your apps? Learn about Grand Central Dispatch, Apple’s implementation of C’s libdispatch, also known as GCD, as it’s one of the simplest ways to queue up tasks to be run in parallel. Then, take on Operations & Operation Queues for when GCD doesn’t quite cut it; you’ll learn how to further customize and reuse your concurrent work. You’ll then learn common concurrency problems that you could face while developing concurrent applications, such as Race Conditions, Deadlocks, and more. Finally, understand threads and thread sanitizer and the various threading-related concepts and how these connect to the knowledge you’ve accumulated throughout this book. You’ll also learn how to use Thread Sanitizer to ease your debugging when things go wrong.
Before You Begin
This section tells you a few things you need to know before you get started, such as what you’ll need for hardware and software, where to find the project files for this book, and more.
Section I: Getting Started with Concurrency
In this part of the book, you’re going to learn about the basics of Concurrency. You’re going to learn what it is, what kind of problems it solves, and why would you even use it?
Further, you will learn the basic pieces of which Concurrency comprises in iOS development: Grand Central Dispatch and Operations.
This section will provide you with the foundational knowledge regarding Concurrency, so be sure to read through! The upcoming sections will dive much deeper into each of these concepts individually.
Section II: Grand Central Dispatch
In this section, you’ll take a deep dive into Apple’s most popular and easy-to-use mechanism to write and manage concurrent tasks — Grand Central Dispatch. You’ll learn how to utilize queues and threads to control the execution of tasks in your app, as well as how to group these tasks together. You’ll also learn about common pitfalls and dangers of using concurrency, and how you can avoid them.
Section III: Operations
Even though Grand Central Dispatch provides most of the concurrency capabilties you’ll need right out-of-the-box, sometimes you’ll want some extra customizability. This is where Operations come into play. This section will teach you about Operations, Operation Queues, and everything in between.
Section IV: Real-Life Concurrency
To wrap up this book, this section will be dedicated to showing you how all of the knowledge you’ve accumulated throughout this book could be used for some real-life purposes.
In this section, you’ll take a deeper dive into a common case where concurrency plays a huge role — Core Data — as well as learn about Apple’s Thread Sanitizer as a great tool to debug and resolve concurrency issues and confusions.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
Learn more