start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getppid Chapter 5
Function Reference
Next: Reference: getprotobyname
 

getpriority

getpriority 
type
, 
id

Returns the current priority for a process, a process group, or a user. type indicates which of these three process types to return. (The type identifiers are system-specific. Consult the manpage for getpriority .) The id gives the specific ID of the corresponding process type in type : a process ID, a process-group ID, or a user ID. The value 0 in who gives the priority for the current process, process group, or user.

The priority will be an integer value. Lower values indicate higher priority (negative values may be returned on some systems). Invoking getpriority will produce a fatal error if used on a machine that doesn't implement the getpriority system call.


Previous: Reference: getppid Perl in a Nutshell Next: Reference: getprotobyname
Reference: getppid Book Index Reference: getprotobyname

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.