cancel
Showing results for 
Search instead for 
Did you mean: 
AL0523
Cadet
Cadet
  • 481 Views

Nice value and allocated CPU time

Jump to solution

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?

1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 475 Views

@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! 

View solution in original post

1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 476 Views

@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! 

Join the discussion
You must log in to join this conversation.