Android Guides | Samples

Android.OS.ThreadPriority Enumeration

Enumerates values returned by several types and taken as a parameter of the Process.SetThreadPriority, and Process.SetThreadPriority members.

Syntax

public enum ThreadPriority

Remarks

Members

Member NameDescription
AudioStandard priority of audio threads. Applications can not normally change to this priority. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
BackgroundStandard priority background threads. This gives your thread a slightly lower than normal priority, so that it will have less chance of impacting the responsiveness of the user interface. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
DefaultStandard priority of application threads. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
DisplayStandard priority of system display threads, involved in updating the user interface. Applications can not normally change to this priority. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
ForegroundStandard priority of threads that are currently running a user interface that the user is interacting with. Applications can not normally change to this priority; the system will automatically adjust your application threads as the user moves through the UI. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
LessFavorableMinimum increment to make a priority less favorable.
LowestLowest available thread priority. Only for those who really, really don't want to run if anything else is happening. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
MoreFavorableMinimum increment to make a priority more favorable.
UrgentAudioStandard priority of the most important audio threads. Applications can not normally change to this priority. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
UrgentDisplay

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.OS.ThreadPriority are listed below.

See Also: Enum

Public Fields

AudioThreadPriority. Standard priority of audio threads. Applications can not normally change to this priority. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
BackgroundThreadPriority. Standard priority background threads. This gives your thread a slightly lower than normal priority, so that it will have less chance of impacting the responsiveness of the user interface. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
DefaultThreadPriority. Standard priority of application threads. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
DisplayThreadPriority. Standard priority of system display threads, involved in updating the user interface. Applications can not normally change to this priority. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
ForegroundThreadPriority. Standard priority of threads that are currently running a user interface that the user is interacting with. Applications can not normally change to this priority; the system will automatically adjust your application threads as the user moves through the UI. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
LessFavorableThreadPriority. Minimum increment to make a priority less favorable.
LowestThreadPriority. Lowest available thread priority. Only for those who really, really don't want to run if anything else is happening. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
MoreFavorableThreadPriority. Minimum increment to make a priority more favorable.
UrgentAudioThreadPriority. Standard priority of the most important audio threads. Applications can not normally change to this priority. Use with Process.SetThreadPriority(ThreadPriority) and Process.SetThreadPriority(Int32,ThreadPriority), not with the normal Thread class.
UrgentDisplayThreadPriority.