Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Gentoo Linux Help
Reload this Page Changing default process priority
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Gentoo Linux Help For help and discussion related to Gentoo Linux

Reply
 
Thread Tools Display Modes
Old 09-08-2004   #1 (permalink)
burly
Just Joined!
 
Join Date: Sep 2004
Posts: 6
Changing default process priority

Hey I've ran into a problem with Kooldock for kde when emerging packages. Kooldock runs with a default nice value of 10 where as the compiler is compiling with a nice value of 0. Many the time the menu stops working/hangs/unwanted behaviour. I know i can change the priority with the renice command but is there anyway that you can change the default priority that a program is run with so I do not need to use renice? Thanks!
burly is offline   Reply With Quote
Old 09-08-2004   #2 (permalink)
kyku
Linux User
 
Join Date: Jul 2004
Location: Poland
Posts: 368
Yes, you can start a program with supplied priority using nice command. The idea is that you can put nice and your command into a shell script and launch the script instead ot the originall one. Is such a sollution satisfactory
__________________
"I don't know what I'm running from
And I don't know where I'm running to
There's something deep and strange inside of me I see"
kyku is offline   Reply With Quote
Old 09-10-2004   #3 (permalink)
burly
Just Joined!
 
Join Date: Sep 2004
Posts: 6
Is there any other way?

Such a solution is satisfactory but is there not another way around this? The problem I have found is that I am using kooldock which has a default priority of 10 and when I begin to compile or upgrade apps my kooldock menu does not work as nicely as it should. Using KDE my applications that have been left open are automatically started up each time I log in and kooldock is one of them. How does linux decide the priority a process should be run with? And is there another way I can set the default priority?
burly is offline   Reply With Quote
Old 09-10-2004   #4 (permalink)
sarumont
Content Team Leader
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,662
In the script that has your startup programs to be executed, just edit the command to contain kooldock's native nice switch.
sarumont is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:05 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0