Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to distribute processor time?

Status
Not open for further replies.

UnknownPerson

Programmer
Dec 4, 2001
80
BR
I have a Linux server wich has a CD writter. Sometimes, we ask the server to burn a CD, but (just to be sure) we need first to make sure that the burning software gets most attention (say, 50 or 60%). Is there a way of doing this easily?

Thanks in advance
 
Hi,

You can set the priority via the 'nice' command for a new process and adjust a running one via 'renice'. The default is 0 and the highest priority is -20 amd the lowest 19.

So you'd do something like :

# nice -n -5 /usr/bin/netscape &

or

# renice -10 -p 1234

(where 1234 is the process id - see the 'top' command for running processes or use 'ps -aux' )

Hope this helps

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top