Find the answer to your Linux question:
Results 1 to 5 of 5
I was reading the man page for the top utility, and in the columns there is a column for priority, and a column right next to it for the niceness ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    2

    What's the difference between niceness and priority?


    I was reading the man page for the top utility, and in the columns there is a column for priority, and a column right next to it for the niceness value. Being somewhat confused by the term niceness, I researched it and found out that the a niceness value of -20 gives a process top priority when consuming CPU cycles... but isn't that what the priority is? What's the difference?

    Thanks

    Jonathan

  2. #2
    Linux Newbie
    Join Date
    Mar 2009
    Posts
    228
    Google is your friend. I googled 'linux nice priority' and the 1st link it came up with is this:

    Linux.com :: Influence scheduling priority with nice and renice

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Posts
    2
    Hi,

    I saw the stuff that explained how to use nice to start a process with a different priority and renice to change the priority of a running process, but what I really want to know is when I run the top command, there is a column (NI) that shows nice values, and a column (PR) that shows the priority values of the process. Because the nice value seems to be the priority level, when I see a process with a nice value of 5 and a priority value of 25, what does it mean and what is the difference between the two values that appear in the columns displayed using the top command?

  4. #4
    Just Joined!
    Join Date
    Apr 2009
    Posts
    1
    Quote Originally Posted by jguymon View Post
    Hi,

    I saw the stuff that explained how to use nice to start a process with a different priority and renice to change the priority of a running process, but what I really want to know is when I run the top command, there is a column (NI) that shows nice values, and a column (PR) that shows the priority values of the process. Because the nice value seems to be the priority level, when I see a process with a nice value of 5 and a priority value of 25, what does it mean and what is the difference between the two values that appear in the columns displayed using the top command?
    I am also having this same doubt the scenario which he is asking for. Can any one please clarify our doubts?

  5. #5
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Hi, kasi86.
    Seeing as this thread is over 2 years old, I'm locking this one down.
    It might be more beneficial for you to start a new thread concerning your doubts.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

Posting Permissions

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