Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DTSPriorityClass Enumeration

Describes the priority of a thread in a class.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
public enum DTSPriorityClass
Member nameDescription
AboveNormalThe thread is scheduled after threads with Default priority and before those with Normal priority.
BelowNormalThe thread is scheduled after threads with Default, AboveNormal, and Normal priority and before those with Lowest priority.
DefaultThe thread is scheduled before threads with any other priority. This is the highest thread priority.
IdleThis thread is scheduled after threads with any other priority.
NormalThe thread is scheduled after threads with Default and AboveNormal priority, and before those with BelowNormal and Lowest priority.

The DTSPriorityClass defines the set of all possible values for a thread priority. Thread priorities specify the relative priority of one thread versus another.

Every thread has an assigned priority. Threads created within the runtime are initially assigned the Default priority, while threads created outside the runtime retain their previous priority when they enter the runtime. You can get and set the priority of a thread by accessing its Priority property, such as the PackagePriorityClass.

Threads are scheduled for execution based on their priority. The scheduling algorithm used to determine the order of thread execution varies with each operating system.

The priority of threads for this enumeration, in order of highest priority to lowest, is as follows:

  • Default

  • AboveNormal

  • Normal

  • BelowNormal

  • Idle

The following example shows the syntax to use when setting the PackagePriorityClass for a package using the DTSPriorityClass enumeration.

Package p = new Package();
p.PackagePriorityClass = DTSPriorityClass.BelowNormal;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.