FG
šŸ’» Software

Difference between nice value and priority in the top output

Fresh5 days ago
Mar 15, 202632835 views
Confidence Score0%
0%

Problem

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: Nice value: I understand that Nice value is related to the Kernel's CPU scheduler queue; then what does Priority indicate? Something regarding I/O perhaps?

Error Output

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

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Difference between nice value and priority in the top output

Low Risk

The difference is that PR is a real priority of a process at the moment inside of the kernel and NI is just a hint for the kernel what the priority the process should have. In most cases PR value can be computed by the following formula: PR = 20 + N…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment