|
NAMEnice —
set program scheduling priority
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
int
DESCRIPTIONThis interface is obsoleted by
setpriority(2).
The Children inherit the priority of their parent processes via fork(2). RETURN VALUESUpon successful completion,nice () returns 0, and
errno is unchanged. Otherwise, -1 is returned, the
process' nice value is not changed, and errno is set to
indicate the error.
ERRORSThenice () function will fail if:
SEE ALSOnice(1), fork(2), setpriority(2), renice(8)STANDARDSThenice () function conforms to IEEE
Std 1003.1-2008 (“POSIX.1”) except for the return value.
This implementation returns 0 upon successful completion but the standard
requires returning the new nice value, which could be -1.
HISTORYAnice () syscall appeared in
Version 6 AT&T UNIX.
Visit the GSP FreeBSD Man Page Interface. |