How To Change Priority Of A Process In Ubuntu Linux

As you all know that the process is an instance of a computer program and one process may consist of many threads. Process Management is one of the most important responsibility of the operating systems. Ubuntu start many processes with priority 0, which is the highest priority (as the rule of thumb is that the lower the number, the greater the priority). If you are running any resource hungry application then this priority mechanism causes some problems. In many cases you will need to tell Ubuntu, which process to run on which priority so that the resource allocation should be according to the respective needs. Lets explore how we can change the priority of any process in Ubuntu.

Method 1: Use System Monitor

You can use System Monitor to change the priority of the process. Launch System Monitor from System > Administration > System Monitor and go to the Processes tab as shown in the following screenshot.

system-monitor

Now, you will be able to see the Nice column in front of every process. It basically specifies the priority value of the process. You can change priority  of any process by right clicking the Nice column value and choosing Change Priority as shown in the following screenshot.

chang-priorty-system-monitor

Thats all, adjust the new priority value and click Change Priority.

change-prioroty

If you are looking for some details regarding System Monitor, you can find some here.

Method 2: Terminal Command

You can also set the priority of any particular process by running following command in the terminal.

nice firefox 5 &

According to the above command, Firefox will run with priority 5. You can replace “firefox” with the process name you wish to change priority. Command line method is quick and useful for those who work on remote Ubuntu servers. Enjoy!

  • Share this article!

    • Digg this!
    • Bookmark on Reddit
    • Bookmark at Delicious
    • Stumble this!
    • Share this post at Facebook
    • Tweet this!
    • Share on Yahoo! Buzz
    • Add AddictiveTips to your Technorati favorites
    • Share on Friendfeed
This entry was posted in Ubuntu Linux and tagged , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. scott
    Posted July 29, 2009 at 1:47 am | Permalink

    to change a priority from the commandline of a currently running process, you can use renice

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


More in Ubuntu Linux,Windows (5 of 5 articles)