<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/dispatch_get_global_queue",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:@F@dispatch_get_global_queue"
  },
  "title" : "dispatch_get_global_queue"
}
-->

# dispatch_get_global_queue

Returns a system-defined global concurrent queue with the specified quality-of-service class.

```
extern dispatch_queue_global_tdispatch_get_global_queue(intptr_t identifier, uintptr_t flags);
```

## Parameters

`identifier`

The quality of service you want to give to tasks executed using this queue. Quality-of-service helps determine the priority given to tasks executed by the queue. You may specify the values `QOS_CLASS_USER_INTERACTIVE`, `QOS_CLASS_USER_INITIATED`, `QOS_CLASS_UTILITY`, or `QOS_CLASS_BACKGROUND`. Queues that handle user-interactive or user-initiated tasks have a higher priority than tasks meant to run in the background.

    In OS X 10.9 or earlier, you can specify one of the dispatch queue priority values, which are found in [`dispatch_queue_priority_t`](/documentation/Dispatch/dispatch_queue_priority_t)    . These values map to an appropriate quality-of-service class.

`flags`

Flags that are reserved for future use. Always specify `0` for this parameter.

## Return Value

The requested global concurrent queue.

## Discussion

This function returns a queue suitable for executing tasks with the specified quality-of-service level. Calls to the [`suspend()`](/documentation/Dispatch/DispatchObject/suspend()), [`resume()`](/documentation/Dispatch/DispatchObject/resume()), and [`dispatch_set_context`](/documentation/Dispatch/dispatch_set_context) functions have no effect on the returned queues.

Tasks submitted to the returned queue are scheduled concurrently with respect to one another.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)