1*61111Sbostic.\" Copyright (c) 1980, 1991, 1993 2*61111Sbostic.\" The Regents of the University of California. All rights reserved. 320168Smckusick.\" 448352Scael.\" %sccs.include.redist.man% 520168Smckusick.\" 6*61111Sbostic.\" @(#)nice.3 8.1 (Berkeley) 06/04/93 748352Scael.\" 848352Scael.Dd 948352Scael.Dt NICE 3 1048352Scael.Os BSD 4 1148352Scael.Sh NAME 1248352Scael.Nm nice 1348352Scael.Nd set program scheduling priority 1448352Scael.Sh SYNOPSIS 1548352Scael.Fn nice "int incr" 1648352Scael.Sh DESCRIPTION 1748352Scael.Bf -symbolic 1820169SmckusickThis interface is obsoleted by setpriority(2). 1948352Scael.Ef 2048352Scael.Pp 2148352ScaelThe 2248352Scael.Fn nice 2348352Scaelfunction obtains the scheduling priority of the process 2448352Scaelfrom the system and sets it to the priority value specified in 2548352Scael.Fa incr . 2648352ScaelThe priority is a value in the range -20 to 20. 2748352ScaelThe default priority is 0; lower priorities cause more favorable scheduling. 2848352ScaelOnly the super-user may lower priorities. 2948352Scael.Pp 3048352ScaelChildren inherit the priority of their parent processes via 3148352Scael.Xr fork 2 . 3248352Scael.Sh SEE ALSO 3348352Scael.Xr nice 1 , 3448352Scael.Xr setpriority 2 , 3548352Scael.Xr fork 2 , 3648352Scael.Xr renice 8 3748352Scael.Sh HISTORY 3848352ScaelA 3948352Scael.Fn nice 4048352Scaelsyscall appeared in 4148352Scael.At v6 . 42