Parameters
pid | Process ID (use 0 for current process). |
Gets the current process priority/nice value.
pid | Process ID (use 0 for current process). |
PlatformNotSupported if not implemented on this platform.
Example:
auto priority = getProcessPriority(0);
writeln("Current priority: ", priority);