O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Dispatch queues

In this section, we will talk about the most commonly used API in concurrency, which is the General Central Dispatch (GCD) queues. GCD manages concurrent code and executes operations asynchronously at the Unix level of the system. GCD manages tasks in something called queues. A queue, as we know, is a data structure that manages items in the order of First In First Out (FIFO). Queues in programming mimic the actual queues that we see in real life, which follow the first come first served concept. In Dispatch queues, the tasks in your iOS app will be submitted to queues in the form of blocks of code.

Getting ready

Before getting started with a demo, there is something that needs to be highlighted. Dispatch queues have two types ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required