version 1.10, 2000/03/10 20:17:50 |
version 1.11, 2000/04/15 11:45:55 |
|
|
.Oc |
.Oc |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
alters the |
alters the scheduling |
scheduling |
|
.Ar priority |
.Ar priority |
(an integer) of one or more running processes. |
(an integer) of one or more running processes. |
The following |
The following |
|
|
would change the priority of process IDs 987 and 32, and |
would change the priority of process IDs 987 and 32, and |
all processes owned by users daemon and root. |
all processes owned by users daemon and root. |
.Pp |
.Pp |
Users other than the super-user may only alter the priority of |
Users other than the superuser may only alter the priority of |
processes they own, |
processes they own, |
and can only monotonically increase their |
and can only monotonically increase their |
.Dq nice value |
.Dq nice value |
|
|
.Dv PRIO_MAX |
.Dv PRIO_MAX |
(20). |
(20). |
(This prevents overriding administrative fiats.) |
(This prevents overriding administrative fiats.) |
The super-user |
The superuser |
may alter the priority of any process |
may alter the priority of any process |
and set the priority to any value in the range |
and set the priority to any value in the range |
.Dv PRIO_MIN |
.Dv PRIO_MIN |
|
|
.Xr getpriority 2 , |
.Xr getpriority 2 , |
.Xr setpriority 2 |
.Xr setpriority 2 |
.Sh BUGS |
.Sh BUGS |
Non-super-users cannot increase scheduling priorities of their own processes, |
Non-superusers cannot increase scheduling priorities of their own processes, |
even if they were the ones that decreased the priorities in the first place. |
even if they were the ones that decreased the priorities in the first place. |
.Sh HISTORY |
.Sh HISTORY |
The |
The |