The scheduling parameters attribute specifies the execution priority of a thread. (Although the terminology and format are designed to allow adding more scheduling parameters in the future, only priority is currently defined.) The priority is expressed relative to other threads in the same policy on a continuum of minimum to maximum for each scheduling policy. A thread's priority falls within one of the following ranges, depending on its scheduling policy.
Low High PRI_FIFO_MIN PRI_FIFO_MAX PRI_RR_MIN PRI_RR_MAX PRI_OTHER_MIN PRI_OTHER_MAX PRI_FG_MIN_NP PRI_FG_MAX_NP PRI_BG_MIN_NP PRI_BG_MAX_NP
Section 2.7 describes how to specify priorities between the minimum and maximum values, and it also discusses how priority affects thread scheduling.
You can use either of the following methods to set the scheduling parameters attribute: