getPriority

abstract fun getPriority(pid: Value? = null): Int

Method: os.getPriority(pid: Long)

Returns the scheduling priority of a process, specified by its process ID.

Return

The scheduling priority of the process.

Parameters

pid

The process ID of the process to query.