getpriority and renice
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > getpriority and renice




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    getpriority and renice  
Neo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-31-07 12:17 PM

Hi friends,
My software works on Solaris and Linux where I want to show the
priority for my process UI.
This software can be installed using any use credentials. Now for
getting priority of my process I have used getpriority() API.

code used:
long priority = getpriority(PRIO_PROCESS,0);

Now when I try to test this feature on Solaris I used renice tool like
renice 15 pid

I can see the changed the priority in UI.

But when I try same command on RHEL 4 I do not see any priority
change. I order to see it I need to use command like
renice 15 pid -u username

Why it is so?
I am confused about who and which parameters. Please guide me.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:42 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register