- Perl Basics
- Perl - Home
- Perl - Introduction
- Perl - Environment
- Perl - Syntax Overview
- Perl - Data Types
- Perl - Variables
- Perl - Scalars
- Perl - Arrays
- Perl - Hashes
- Perl - IF...ELSE
- Perl - Loops
- Perl - Operators
- Perl - Date & Time
- Perl - Subroutines
- Perl - References
- Perl - Formats
- Perl - File I/O
- Perl - Directories
- Perl - Error Handling
- Perl - Special Variables
- Perl - Coding Standard
- Perl - Regular Expressions
- Perl - Sending Email
- Perl Advanced
- Perl - Socket Programming
- Perl - Object Oriented
- Perl - Database Access
- Perl - CGI Programming
- Perl - Packages & Modules
- Perl - Process Management
- Perl - Embedded Documentation
- Perl - Functions References
- Perl Useful Resources
- Perl - Questions and Answers
- Perl - Quick Guide
- Perl - Useful Resources
- Perl - Discussion
Perl getpriority Function
Description
This function returns the current priority for a process (PRIO_PROCESS), process group (PRIO_PGRP) or user (PRIO_USER).
The argument WHICH specifies what entity to set the priority for one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER, and WHO is the process ID or user ID to set. A value of 0 for WHO defines the current process, process group, or user. This produces a fatal error on systems that don.t support the system getpriority( ) function.
Syntax
Following is the simple syntax for this function −
getpriority WHICH, WHO
Return Value
This function returns undef on error otherwise current priority.
perl_function_references.htm
Advertisements
To Continue Learning Please Login
Login with Google