process priority

process priority

am 18.10.2004 09:49:02 von Girish A Joshi

can i set higher priority for a process in RHL 8.0.
If yes, then how to go about it?
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: process priority

am 18.10.2004 10:29:10 von i_am_sumit_kalra

Hi,

You can use the 'nice' utility (man nice). To change
the priority of a process programatically, you can use
the nice() function (man 2 nice).

Regards,
Sumit

--- Girish A Joshi wrote:
> can i set higher priority for a process in RHL 8.0.
> If yes, then how to go about it?
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at
> http://www.linux-learn.org/faqs
>





___________________________________________________________A LL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: process priority

am 18.10.2004 11:07:02 von Simon Valiquette

sumit kalra a =E9crit :
> Hi,
>=20
> You can use the 'nice' utility (man nice). To change
> the priority of a process programatically, you can use
> the nice() function (man 2 nice).
>=20
> Regards,
> Sumit
>=20

You can also use renice, to change the process priority of an alread=
y=20
running process. Unfortunatelly, you can only lower the priority of th=
e=20
process. With renice, You need to be root to put higher the priority o=
f=20
a running process. Still, it is usefull if you want to lower the=20
priority of a group of process that take lots of ressources on a system=
=20
(ex. lowering the priority of a big "find" request all over your hardis=
k=20
while you are doing something else more important).

As far as I know, both nice and renice are available for every moder=
n=20
Unix systems.

Simon Valiquette

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs