Skip to contentSkip to conversation

process priority

DISCUSSION Girish A Joshi 3 participants 3 messages Oct 18, 2004

lore
Share & tools
lore
#1 lore raw

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

Quoted 11 lines · --- 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 [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.linux-learn.org/faqs

___________________________________________________________ALL-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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 9 lines · 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

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

As far as I know, both nice and renice are available for every modern
Unix systems.

Simon Valiquette

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