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 ]
|