Android.OS.Process.SetThreadPriority Method
Set the priority of a thread, based on Linux priorities.

Syntax

[Android.Runtime.Register("setThreadPriority", "(II)V", "")]
public static void SetThreadPriority (int tid, [Android.Runtime.GeneratedEnum] ThreadPriority priority)

Parameters

tid
The identifier of the thread/process to change.
priority
A Linux priority level, from -20 for highest scheduling priority to 19 for lowest scheduling priority.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionThrows IllegalArgumentException if tid does not exist.
Java.Lang.SecurityExceptionThrows SecurityException if your process does not have permission to modify the given thread, or to use the given priority.

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1