DispatchQueue.GetGlobalQueue(DispatchQueuePriority) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns one of the global dispatch queues based on the requested priority.
public static CoreFoundation.DispatchQueue GetGlobalQueue (CoreFoundation.DispatchQueuePriority priority);
static member GetGlobalQueue : CoreFoundation.DispatchQueuePriority -> CoreFoundation.DispatchQueue
Parameters
- priority
- DispatchQueuePriority
Determines the priority of the queue to be returned.
Returns
The queue priority.
Remarks
Unlike the main queue or queues allocated with the named DispatchQueue constructor, the global concurrent queues schedule blocks as soon as threads become available (non-FIFO completion order). The global concurrent queues represent three priority bands: DispatchQueuePriority.High, DispatchQueuePriority.Default and DispatchQueuePriority.Low.
Tasks submitted to the high priority global queue will be invoked before those submitted to the default or low priority global queues. Blocks submitted to the low priority global queue will only be invoked if no blocks are pending on the default or high priority queues.