Compartilhar via


Process.GetThreadPriority(Int32) Method

Definition

Return the current priority of a thread, based on Linux priorities.

[Android.Runtime.Register("getThreadPriority", "(I)I", "")]
public static Android.OS.ThreadPriority GetThreadPriority (int tid);
[<Android.Runtime.Register("getThreadPriority", "(I)I", "")>]
static member GetThreadPriority : int -> Android.OS.ThreadPriority

Parameters

tid
Int32

The identifier of the thread/process. If tid equals zero, the priority of the calling process/thread will be returned.

Returns

Returns the current priority, as a Linux priority level, from -20 for highest scheduling priority to 19 for lowest scheduling priority.

Attributes

Exceptions

Throws IllegalArgumentException if tid does not exist.

Remarks

Return the current priority of a thread, based on Linux priorities.

Java documentation for android.os.Process.getThreadPriority(int).

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