Process.SetThreadPriority Process.SetThreadPriority Method

Definition

Overloads

SetThreadPriority(ThreadPriority) SetThreadPriority(ThreadPriority)

Set the priority of the calling thread, based on Linux priorities.

SetThreadPriority(Int32, ThreadPriority) SetThreadPriority(Int32, ThreadPriority)

Set the priority of a thread, based on Linux priorities.

SetThreadPriority(ThreadPriority) SetThreadPriority(ThreadPriority)

Set the priority of the calling thread, based on Linux priorities.

[Android.Runtime.Register("setThreadPriority", "(I)V", "")]
public static void SetThreadPriority (Android.OS.ThreadPriority priority);
static member SetThreadPriority : Android.OS.ThreadPriority -> unit

Parameters

priority
ThreadPriority ThreadPriority

A Linux priority level, from -20 for highest scheduling priority to 19 for lowest scheduling priority.

Exceptions

Throws IllegalArgumentException if tid does not exist.

Throws SecurityException if your process does not have permission to modify the given thread, or to use the given 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.

SetThreadPriority(Int32, ThreadPriority) SetThreadPriority(Int32, ThreadPriority)

Set the priority of a thread, based on Linux priorities.

[Android.Runtime.Register("setThreadPriority", "(II)V", "")]
public static void SetThreadPriority (int tid, Android.OS.ThreadPriority priority);
static member SetThreadPriority : int * Android.OS.ThreadPriority -> unit

Parameters

tid
Int32 Int32

The identifier of the thread/process to change.

priority
ThreadPriority ThreadPriority

A Linux priority level, from -20 for highest scheduling priority to 19 for lowest scheduling priority.

Exceptions

Throws IllegalArgumentException if tid does not exist.

Throws SecurityException if your process does not have permission to modify the given thread, or to use the given 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.

Applies to