PlatformNotSupported if not implemented on this platform.
Example:
setProcessPriority(0, ProcessPriority.BELOW_NORMAL);
writeln("Priority lowered for current process");Sets process priority/nice value.
This function adjusts the priority of a process. On Linux/Unix systems, this uses the nice value where lower values mean higher priority. On Windows, this uses process priority classes.
pid | Process ID (use 0 for current process). |
priority | Priority level to set. |
PlatformNotSupported if not implemented on this platform.
Example:
setProcessPriority(0, ProcessPriority.BELOW_NORMAL);
writeln("Priority lowered for current process");