February 2012
Intermediate to advanced
1184 pages
37h 17m
English
setpriorityWHICH,WHO,PRIORITY
This function sets the current
PRIORITY for a process, a process group, or a
user, as specified by the WHICH and
WHO. See setpriority(2).
Invoking setpriority will raise an
exception if used on a machine that doesn’t implement
setpriority(2). To “nice” your process down by four
units (the same as executing your program with
nice(1)), try:
setpriority 0, 0, getpriority(0, 0) + 4;
The interpretation of a given priority may vary from one operating system to the next. Some priorities may be unavailable to nonprivileged users.
See also the BSD::Resource module from CPAN.
Read now
Unlock full access