Unix Programming - getpriority and renice

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > August 2007 > getpriority and renice





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author getpriority and renice
Neo

2007-08-31, 7:17 am

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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com