Returns the scheduling priority for the process specified by pid. If pid is not provided or is 0, the priority of the current process is returned.
pid
0
Optional
The process ID to retrieve scheduling priority for.
v10.10.0
Returns the scheduling priority for the process specified by
pid
. Ifpid
is not provided or is0
, the priority of the current process is returned.