Concurrency by Tutorials: Multithreading in Swift with GCD and Operations
- Paperback: 123 pages
- Publisher: WOW! eBook (July 20, 2019)
- Language: English
- ISBN-10: 1942878788
- ISBN-13: 978-1942878780
Concurrency by Tutorials: Multithreading in Swift with GCD and Operations: Dive Into Concurrency in Your iOS Apps!: Up to date for iOS 12, Xcode 10.2.1 & Swift 5
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.
Concurrency is the concept of multiple things, or pieces of work, running at the same time. With the addition of CPU cores in our devices, knowing how to properly utilize your customer’s hardware to the maximum is absolutely a must. However, proper concurrency in iOS apps is one of the lesser-known topics that every developer wants to (and should) understand properly, but is usually intimidated by. This is where Concurrency by Tutorials comes to the rescue! In this book, you’ll learn everything there is to know about how to write performant and concurrent code for your iOS apps.