ThreadPriority Enum

Definition

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

public enum ThreadPriority
type ThreadPriority = 
Inheritance
ThreadPriority

Fields

Name Value Description
UrgentAudio -19

Standard priority of the most important audio threads. Applications should not normally change to this priority. Use with setThreadPriority(int) and setThreadPriority(int, int) , not with the normal Thread class.

Audio -16

Standard priority of audio threads.

Video -10

Standard priority of video threads. Applications should not normally change to this priority. Use with setThreadPriority(int) and setThreadPriority(int, int) , not with the normal Thread class.

UrgentDisplay -8

Standard priority of the most important display threads, for compositing the screen and retrieving input events. Use with setThreadPriority(int) and setThreadPriority(int, int) , not with the normal Thread class.

Display -4

Standard priority of system display threads, involved in updating the user interface.

Foreground -2

Standard priority of threads that are currently running a user interface that the user is interacting with.

MoreFavorable -1

Minimum increment to make a priority more favorable.

Default 0

Standard priority of application threads. Use with setThreadPriority(int) and setThreadPriority(int, int) , not with the normal Thread class.

LessFavorable 1

Minimum increment to make a priority less favorable.

Background 10

Standard priority background threads.

Lowest 19

Lowest available thread priority.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Java documentation for android.os.Process.

Applies to