System Administration Guide, Volume 2

How to Change the Class of a Process

  1. (Optional) Become superuser.


    Note -

    You must be superuser or working in a real-time shell to change processes from, or to, real-time processes.


  2. Change the class of a process.


    # priocntl -s -c class -i idtype idlist
    

    -s

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

    -c class

    Specifies the class, TS or RT, to which you are changing the process.

    -i idtype idlist

    Uses a combination of idtype and idlist to identify the process. The idtype specifies the type of ID, such as PID or UID.

  3. Verify the process status by using the ps -ecl command.


    # ps -ecl | grep idlist
    

Example--Changing the Class of a Process

The following example changes all the processes belonging to user 15249 to real-time processes.


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

Note -

If, as superuser, you change a user process to the real-time class, the user cannot subsequently change the real-time scheduling parameters (using priocntl -s).