1*48352Scael.\" Copyright (c) 1980, 1991 Regents of the University of California. 2*48352Scael.\" All rights reserved. 320168Smckusick.\" 4*48352Scael.\" %sccs.include.redist.man% 520168Smckusick.\" 6*48352Scael.\" @(#)nice.3 6.2 (Berkeley) 04/19/91 7*48352Scael.\" 8*48352Scael.Dd 9*48352Scael.Dt NICE 3 10*48352Scael.Os BSD 4 11*48352Scael.Sh NAME 12*48352Scael.Nm nice 13*48352Scael.Nd set program scheduling priority 14*48352Scael.Sh SYNOPSIS 15*48352Scael.Fn nice "int incr" 16*48352Scael.Sh DESCRIPTION 17*48352Scael.Bf -symbolic 1820169SmckusickThis interface is obsoleted by setpriority(2). 19*48352Scael.Ef 20*48352Scael.Pp 21*48352ScaelThe 22*48352Scael.Fn nice 23*48352Scaelfunction obtains the scheduling priority of the process 24*48352Scaelfrom the system and sets it to the priority value specified in 25*48352Scael.Fa incr . 26*48352ScaelThe priority is a value in the range -20 to 20. 27*48352ScaelThe default priority is 0; lower priorities cause more favorable scheduling. 28*48352ScaelOnly the super-user may lower priorities. 29*48352Scael.Pp 30*48352ScaelChildren inherit the priority of their parent processes via 31*48352Scael.Xr fork 2 . 32*48352Scael.Sh SEE ALSO 33*48352Scael.Xr nice 1 , 34*48352Scael.Xr setpriority 2 , 35*48352Scael.Xr fork 2 , 36*48352Scael.Xr renice 8 37*48352Scael.Sh HISTORY 38*48352ScaelA 39*48352Scael.Fn nice 40*48352Scaelsyscall appeared in 41*48352Scael.At v6 . 42