top, by default, lists both columns. I am curious as to what is the difference. I checked out the man pages and cannot figure it out:

Priority:

   h: PR  --  Priority
      The priority of the task.

Nice value:

   i: NI  --  Nice value
      The nice value of the task.  A negative nice value means higher  priority,
      whereas  a  positive  nice value means lower priority.  Zero in this field
      simply means priority will not be adjusted in determining  a  task’s  dis-
      patchability.

I understand that Nice value is related to the Kernel's CPU scheduler queue; then what does Priority indicate? Something regarding I/O perhaps?

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted

The nice value is a "global" mechanism, whereas priority is relevant for the task switcher right now.

link|improve this answer
What do you mean by task switcher? – Beaming Mel-Bin Oct 27 '10 at 0:21
1  
The task switcher (properly called the "scheduler") is a little bit of code within the kernel that decides what task will run next. – Ignacio Vazquez-Abrams Oct 27 '10 at 4:12
As always, thanks Ignacio! – Beaming Mel-Bin Oct 27 '10 at 14:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.