Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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!

  2. #2
    Linux User
    Join Date
    Jul 2004
    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"

  3. #3

    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?

  4. $spacer_open
  5. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    In the script that has your startup programs to be executed, just edit the command to contain kooldock's native nice switch.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts