LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-12-2004, 06:47 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
priority


Hi!! Do u know if it is possible to run a process using different priority than the others....? How i can achieve it?
Thx a lot
 
Old 10-12-2004, 06:51 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
nice is your friend.

man nice
 
Old 10-12-2004, 06:54 AM   #3
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hello.

Yeah you sure can. A built in app called 'renice' allows you to alter the priority of a running application.

There is also an app called 'nice' which allows you to start a program with a priority of your choice.

Check the man page for both, but in short something like...

nice -n -20 'command' will run the 'command' at the highest possible priority. -19 is the lowest priority.

You would have to be careful running something at -20 (highest) as it would be given priority over some important system PID's that are running

Good luck.
>Craig
 
Old 10-12-2004, 06:55 AM   #4
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
sorry tricky got in just before me
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU Priority VampireL0rd Linux - General 3 10-28-2005 02:31 PM
thread priority tornatom Programming 0 08-22-2005 01:00 PM
Priority for Executables Murdock1979 Linux - General 3 07-24-2005 01:17 PM
Task Priority olias Linux - Newbie 6 11-03-2003 06:38 PM
Priority tagging crokett Linux - Networking 3 04-15-2003 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration