In ch07s01 "Dynamic priority", as written in the textbook:
"The weight of a process controls how much CPU a process gets, and the nice value scales the process weight. For example, under system CPU saturation, a process with nice value of 10 would get twice the CPU time of a process with nice value of 5."
Doesn't nice value of 10 have lower priority than nice value of 5? Why 10 would get twice the CPU time of 5?
@AL0523 You are right, I have reported this issue earlier and devs are planning to restructure this lesson on "Nice" and "priority" in the next update of this course.
In general, it is difficult to predict exactly how much CPU time a process will get, even if you know the nice value of the process. The best way to get an accurate estimate of the CPU time that a process will get is to run the process and measure the amount of CPU time that it uses. Let us wait for the lecture to be restructured by an expert on this. Stay tuned !
Thank you for reporting this!
@AL0523 You are right, I have reported this issue earlier and devs are planning to restructure this lesson on "Nice" and "priority" in the next update of this course.
In general, it is difficult to predict exactly how much CPU time a process will get, even if you know the nice value of the process. The best way to get an accurate estimate of the CPU time that a process will get is to run the process and measure the amount of CPU time that it uses. Let us wait for the lecture to be restructured by an expert on this. Stay tuned !
Thank you for reporting this!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.