System.Threading.ThreadPriority Enum

public enum ThreadPriority

Base Types

Object
  ValueType
    Enum
      ThreadPriority

Assembly

mscorlib

Library

BCL

Summary

Specifies the scheduling priority of a Thread.

Description

ThreadPriority values specify the relative scheduling priority of threads.

Operating systems are not guaranteed to support preemptive scheduling. Also, the concept of "thread priority" might not exist at all or its meaning might vary, depending on the underlying operating system. Implementers of this type are required to describe how the notion of thread priority maps to operating system priority. For more information about threads, see the Thread class.

The System.Threading.Thread.Priority property sets and returns the priority value information for a thread. Applications can request a scheduling priority for a thread by setting the System.Threading.Thread.Priority property to the appropriate ThreadPriority value. The default thread priority is System.Threading.ThreadPriority.Normal .

[Note: A thread cannot be scheduled if it is in the System.Threading.ThreadState.Unstarted state or the System.Threading.ThreadState.Stopped state. ]

See Also

System.Threading Namespace

Members

ThreadPriority Fields

ThreadPriority.AboveNormal Field
ThreadPriority.BelowNormal Field
ThreadPriority.Highest Field
ThreadPriority.Lowest Field
ThreadPriority.Normal Field
ThreadPriority.value__ Field


ThreadPriority.AboveNormal Field

AboveNormal = 3;

Summary

Threads with this priority can be scheduled after threads with System.Threading.ThreadPriority.Highest priority and before those with System.Threading.ThreadPriority.Normal priority.

See Also

System.Threading.ThreadPriority Enum, System.Threading Namespace

ThreadPriority.BelowNormal Field

BelowNormal = 1;

Summary

Threads with this priority can be scheduled after threads with System.Threading.ThreadPriority.Normal priority, and before those with System.Threading.ThreadPriority.Lowest priority.

See Also

System.Threading.ThreadPriority Enum, System.Threading Namespace

ThreadPriority.Highest Field

Highest = 4;

Summary

Threads with this priority can be scheduled before threads with any other priority.

See Also

System.Threading.ThreadPriority Enum, System.Threading Namespace

ThreadPriority.Lowest Field

Lowest = 0;

Summary

Threads with this priority can be scheduled after threads with any other priority.

See Also

System.Threading.ThreadPriority Enum, System.Threading Namespace

ThreadPriority.Normal Field

Normal = 2;

Summary

Threads with this priority can be scheduled after threads with System.Threading.ThreadPriority.AboveNormal priority and before those with System.Threading.ThreadPriority.BelowNormal priority.

Threads have System.Threading.ThreadPriority.Normal priority by default.

See Also

System.Threading.ThreadPriority Enum, System.Threading Namespace

ThreadPriority.value__ Field

value__;

See Also

System.Threading.ThreadPriority Enum, System.Threading Namespace