© Khaled El-Morabea and Hassaan El-Garem 2021
K. El-Morabea, H. El-GaremModularizing Legacy Projects Using TDDhttps://doi.org/10.1007/978-1-4842-7428-6_8

8. Avoiding Multithreading Nightmares

Khaled El-Morabea1   and Hassaan El-Garem2
(1)
Giza, Egypt
(2)
Cairo, Egypt
 

Concurrency and multithreading are a core part of iOS development. Understanding them and understanding how to properly leverage them is a key part of developing a high-quality app. Lack of concurrency usually leads to having nonresponsive apps that freeze up once a heavy operation is being performed.

What Is Concurrency?

The concept of concurrency is that two or more tasks can be defined independently and each task can be executed regardless if the other tasks are executing or not. This ...

Get Modularizing Legacy Projects Using TDD: Test-Driven Development with XCTest for iOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.