---
title: "global(qos:)"
framework: dispatch
role: symbol
role_heading: Type Method
path: "dispatch/dispatchqueue/global(qos:)"
---

# global(qos:)

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

## Declaration

```swift
class func global(qos: DispatchQoS.QoSClass = .default) -> DispatchQueue
```

## Parameters

- `qos`: The quality-of-service level to associate with the queue. This value determines the priority at which the system schedules tasks for execution. For a list of possible values, see doc://com.apple.dispatch/documentation/Dispatch/DispatchQoS/QoSClass-swift.enum.

## Discussion

Discussion This method returns a queue suitable for executing tasks with the specified quality-of-service level. Calls to the suspend(), resume(), and 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.

## See Also

### Creating a Dispatch Queue

- [main](dispatch/dispatchqueue/main.md)
- [init(label:qos:attributes:autoreleaseFrequency:target:)](dispatch/dispatchqueue/init(label:qos:attributes:autoreleasefrequency:target:).md)
- [DispatchQoS.QoSClass](dispatch/dispatchqos/qosclass-swift.enum.md)
- [DispatchQueue.Attributes](dispatch/dispatchqueue/attributes.md)
- [DispatchQueue.AutoreleaseFrequency](dispatch/dispatchqueue/autoreleasefrequency.md)
- [OS_dispatch_queue_main](dispatch/os_dispatch_queue_main-swift.class.md)
- [OS_dispatch_queue_global](dispatch/os_dispatch_queue_global-swift.class.md)
- [DispatchSerialQueue](dispatch/dispatchserialqueue.md)
- [DispatchConcurrentQueue](dispatch/dispatchconcurrentqueue.md)
- [dispatch_queue_main_t](dispatch/dispatch_queue_main_t.md)
- [dispatch_queue_global_t](dispatch/dispatch_queue_global_t.md)
- [dispatch_queue_serial_t](dispatch/dispatch_queue_serial_t.md)
- [dispatch_queue_concurrent_t](dispatch/dispatch_queue_concurrent_t.md)
