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

Syntax

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

See Also

Process.SetThreadPriority(int, Android.OS.ThreadPriority)

Parameters

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 the calling thread, based on Linux priorities. See Process.SetThreadPriority(int, Android.OS.ThreadPriority) for more information.

[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