Go to main content

Managing System Information, Processes, and Performance in Oracle® Solaris 11.4

Exit Print View

Updated: August 2021

How to Change the Class of a Process

  1. (Optional) Assume the root role.

    Note -  You must assume the root role or be working in a real-time shell to change a process from, or to, a real-time process. If, in the root role, you change a user process to the real-time class, the user cannot subsequently change the real-time scheduling parameters by using the priocntl -s command.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Change the class of a process.
    # priocntl -s -c class -i ID type ID list

    Lets you set the upper limit on the user priority range and change the current priority.

    –c class

    Specifies the class, TS for time-sharing or RT for real-time, to which you are changing the process.

    –i ID type ID list

    Uses a combination of ID type and ID list to identify the process or processes. ID type specifies the type of ID, such as the process ID or user ID. ID list identifies a list of process IDs or user IDs.

  3. Verify the process status.
    # ps -ecl | grep ID list
Example 12  Changing the Class of a Process

The following example shows how to change all the processes that belong to user 15249 to real-time processes.

# priocntl -s -c RT -i uid 15249
# ps -ecl | grep 15249