hi,
i got multiple processes running on my system, whose process id's (PID) can be known by "ps".
My query is .... can we increase and/or decrease the priority of these processes "dynamically", so that i can choose which process gets the maximum and which one gets the minimum CPU TIME.
best of luck.
ashutosh.
"nice" should help you.
On Wed, 24 Dec 2003, Nasikkar, Ashutosh wrote:
hi,
i got multiple processes running on my system, whose process id's (PID) can be known by "ps".
My query is .... can we increase and/or decrease the priority of these processes "dynamically", so that i can choose which process gets the maximum and which one gets the minimum CPU TIME.
best of luck.
ashutosh.
--- "Nasikkar, Ashutosh" anasikkar@iPolicyNet.COM wrote: > hi,
i got multiple processes running on my system, whose process id's (PID) can be known by "ps".
My query is .... can we increase and/or decrease the priority of these processes "dynamically", so that i can choose which process gets the maximum and which one gets the minimum CPU TIME.
I suppose u have to use the nice command or the nice system call if u want to do it in programmatically....but for nice to have an negative increment u will have to be the super user....also can u please elaborate on what processe u have to change the priority
________________________________________________________________________ Yahoo! India Mobile: Download the latest polyphonic ringtones. Go to http://in.mobile.yahoo.com
On Wed, 24 Dec 2003, [iso-8859-1] saravanan sachithanantham wrote:
~ --- "Nasikkar, Ashutosh" anasikkar@iPolicyNet.COM ~ wrote: > hi, ~ > ~ > can we increase and/or decrease the priority of ~ > these processes "dynamically", so that i can choose ~ > which process gets the maximum and which one ~ > gets the minimum CPU TIME. ~ ~ I suppose u have to use the nice command or the nice ~ system call if u want to do it in ~ programmatically....but for nice to have an negative ~ increment u will have to be the super user....also can
"renice" is what the original poster is looking for. nice is helpful only while starting a process.