Linux priocntl command
Updated: 05/04/2019 by Computer Hope
On the Solaris operating system, the priocntl command displays or sets the scheduling parameters of the specified processes.
Syntax
priocntl [-l] [-d] [-s] [-e] [-i idType] [idlist] [-c class] [class-specific-options] [arguments]
-l | Display a list of the classes currently configured in the system with class-specific information about each class. The format of the class specific information displayed is described below. | ||||||||||||||||
-d | Display the scheduling parameters associated with a set of processes. | ||||||||||||||||
-s | Set the scheduling parameters associated with a set of processes. | ||||||||||||||||
-e | Execute a specified command with the class and scheduling parameters associated with a set of processes. | ||||||||||||||||
-i idType | This option together with the idlist arguments (if any), specify one or more processes to which the priocntl command is to apply. The interpretation of idlist depends on the value of idType. The valid idType arguments and corresponding interpretations of idlist are as follows:
If the -i idType option is omitted when using the -d or -s options the default idType of pid is assumed. |
||||||||||||||||
-c class | Specifies the class to be set. (The valid class arguments are RT for real-time or TS for time-sharing or IA for interactive.) If the specified class is not already configured, it automatically configures. | ||||||||||||||||
class-specific-options | The valid class-specific options for setting real-time parameters are:
|
||||||||||||||||
arguments | Additional arguments to the priocntl command. |
Examples
priocntl -s -c RT -t 1 -r 10 -i idType idlist
Sets the class of any non-real-time processes selected by idType and idlist to real-time and sets their real-time priority to the default value of 0.
Related commands
nice — Invoke a command with an altered scheduling priority.
ps — Report the status of a process or processes.