AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

If)

NICE (2) NICE (2) NAME nice - change priority of a process SYNOPSIS int nice (incr) int incr; DESCRIPTION Nice adds the value of incr to the nice value of the calling process. A process's nice value is a positive number for which a more positive value results in lower CPU priority. A maximum nice value of 39 and a minimum nice value of 0 are imposed by the system. Requests for values above or below these limits result in the nice value being set to the corresponding limit. Nice will fail and not change the nice value if incr is negative and the effective user ID of the calling process is not super-user. IEPERMI RETURN VALUE Upon successful completion, nice returns the new nice value minus 20. Otherwise, a value of - 1 is returned and errno is set to indicate the error. SEE ALSO nice(l), exec(2). - 1 -

NICE (2) NICE (2)<br />

NAME<br />

nice - change priority of a process<br />

SYNOPSIS<br />

int nice (incr)<br />

int incr;<br />

DESCRIPTION<br />

Nice adds the value of incr to the nice value of the calling process.<br />

A process's nice value is a positive number for which a more<br />

positive value results in lower CPU priority.<br />

A maximum nice value of 39 and a minimum nice value of 0 are<br />

imposed by the system. Requests for values above or below these<br />

limits result in the nice value being set to the corresponding limit.<br />

Nice will fail and not change the nice value if incr is negative<br />

and the effective user ID of the calling process is not super-user.<br />

IEPERMI<br />

RETURN VALUE<br />

Upon successful completion, nice returns the new nice value<br />

minus 20. Otherwise, a value of - 1 is returned and errno is set to<br />

indicate the error.<br />

SEE ALSO<br />

nice(l), exec(2).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!