Table of Contents

Enum QueuePriority

Namespace
DotCompute.Abstractions.Models.Device
Assembly
DotCompute.Abstractions.dll

Defines priority levels for command queues to control task scheduling and resource allocation. Higher priority queues receive preferential treatment from the device scheduler.

public enum QueuePriority

Fields

High = 2

High priority for time-sensitive and critical operations.

High priority queues receive preferential scheduling and resource allocation. Suitable for real-time operations, interactive applications, critical system tasks, and latency-sensitive workloads. May preempt lower priority tasks to ensure timely execution.

Low = 0

Low priority for background tasks and non-critical operations.

Low priority queues are scheduled when higher priority work is not available. Suitable for batch processing, maintenance tasks, data preprocessing, and other operations that can tolerate longer execution times. These tasks may be preempted by higher priority work.

Normal = 1

Normal priority for standard computational workloads.

Default priority level for most compute tasks. Provides balanced resource allocation without special treatment. Normal priority queues receive fair scheduling with other normal priority work and are the baseline for system performance expectations.

Remarks

Queue priorities enable differentiated service levels for different types of workloads. The scheduler uses these priorities to determine execution order, resource allocation, and preemption policies. Priority levels help ensure that critical tasks receive appropriate attention while maintaining system throughput.