- 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.
Type Reason Java.Lang.IllegalArgumentException Throws IllegalArgumentException if tid does not exist. Java.Lang.SecurityException Throws SecurityException if your process does not have permission to modify the given thread, or to use the given priority.
Set the priority of a thread, based on Linux priorities.