Swift and Cocoa Essentials: What Is the Main Thread

Опубликовано: 02 Октябрь 2018
на канале: Cocoacasts
1,305
45

Even though threading and concurrency are more advanced concepts, you need to understand the basics regardless of your level of experience. The devices we develop applications for are powered by multicore processors and it's important to take advantage of that power.

In the previous episode, we covered threads, queues, and concurrency. In today's episode, I'd like to take a closer look at the main thread. I'm sure you've heard of the main thread and you may also know about the importance of keeping it responsive by minimizing the work your application performs on the main thread. Why is that? What happens if you perform a heavy operation on the main thread?