what is the difference between nice value and priority?
Priority value — The priority value is the process's actual priority which is used by the Linux kernel to schedule a task. ... Nice value — Nice values are user-space values that we can use to control the priority of a process. The nice value range is -20 to +19 where -20 is highest, 0 default and +19 is lowest.