Operating System - HP-UX
1833772 Members
2450 Online
110063 Solutions
New Discussion

difference between trprio & renice/nice

 
RAC_1
Honored Contributor

difference between trprio & renice/nice

As subject line asks.
There is no substitute to HARDWORK
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: difference between trprio & renice/nice

Anil,

I assume you mean rtprio.

Using the search function and the string below will give you quite a few hits:

+rtprio

Here's an example:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf0ac72234586d5118ff00090279cd0f9,00.html

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: difference between trprio & renice/nice

Tim D Fulford
Honored Contributor

Re: difference between trprio & renice/nice

use the above links for the full ans. I have explained it thus

nice/renice is seperate to priority (rtprio): The the processor may have many processes at the same priority (say 154) but some of them may have a lesser (higher) nice value. In effect there are two queues, they do similar things but slightly differently.

the HP-UX priorities are split into a few catagories & sub catagories based on a numeric priority level.
HP-UX TimeSchedule: 101-256 (I think)
HP-UX RealTime: 0-100
POSIX RealTime [RR, RR2, FIFO]: -32 to -1
The basic difference is that RealTime priorities (-31 to 100) do not suffer from priority degradation (having there priority numericaly increased [reduced] if the OS thinks it is being CPU greedy!!!)

The other difference is when you use top (as I have found in the past) you see columns called NICE & USER. If all your processes have a nice value of 20 (default) then no NICE cpu is used and only USER is used.

If you want to see a processes Nice & priority (say PID 1234) do
% ps -lp 1234

I hope this helps

Tim
-
Carlos Fernandez Riera
Honored Contributor

Re: difference between trprio & renice/nice

nice means get me priority

rtprio means i am running in real-time, when you can get time give then to the nicer process...
unsupported