Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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

share|improve this answer
    
What do you mean by task switcher? –  Belmin Fernandez 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! –  Belmin Fernandez Oct 27 '10 at 14:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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