setPriority
abstract fun setPriority(pid: Value? = Value.asValue(0), priority: Value? = Value.asValue(PRIORITY_NORMAL))
Method: os.setPriority(pid: Long, priority: Int)
Sets the scheduling priority of a process, specified by its process ID.
Parameters
pid
The process ID of the process to modify; defaults to 0
.
priority
The new scheduling priority for the process.