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

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

The global queue

The global queue

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

Start my 1-month free trial

The global queue

- [Instructor] Grand central dispatch also provides us with a global queue to work with. The global queue is a concurrent queue, that executes tasks based on the priority of the task. The priority of the tasks describes how important a task is. And the way we set up its importance, is by using quality of service, better known as QoS. QoS is used to communicate developer intent and classification of work. For example, you'll say, I'm doing user specific initiated work and the system will get the right value for that device and platform. We have four main types for quality of service and one default. They're namely userInteractive, userInitiated, default, utility and background. At the top of the priority list, is a user initiated QoS and background QoS has the least priority. The first one is userInteractive. Tasks that have a user interactive quality of service run on the main thread. They're executed…

Contents