From the course: iOS Development: Threading and Grand Central Dispatch

Traditional threading

From the course: iOS Development: Threading and Grand Central Dispatch

Start my 1-month free trial

Traditional threading

- [Instructor] Have you ever written a great app but when they use or tries to use it, they get long poses before execution goes through and all this time, the screen is frozen? This is unacceptable. Users expect fast and responsive apps. Apple will also expect the same when you try to upload your app to the app store. Today, it's much easier to achieve this, but before, as a developer, you had to create and manage your own threads manually. Needless to say, this was an inefficient method and quite intimidating for junior developers to get started with. And even assuming you are able to make the threads, managing them was another nightmare. You had to make sure they're run efficiently and that they didn't interfere with each other. This was not an efficient method. Given that the optimal number of threads for an application could change based on the current system load and the underlying hardware. Upper resolved this issues by introducing Grand Central Dispatch, better refer to as GCD. In this course, we will be exploring what GCD has to offer and delve into some important topics associated with GCD.

Contents