2

I'm running an application which, for now, uses the bakery algorithm for syncronizing n processes, but with this method I do a lot of busy waiting on my CPU, in fact as you can see from the title, I have a load avg of 20, 30, 10, etc.. depending on how many processes I decide to fork.

Is it dangerous for my PC to have such a load? Could I damage the computer by running this app for 1 minute straight?

EDIT: I have 4 cores.

  • The load average is the average number of processes running/waiting for CPU time in a given time period. It has no direct relationship to how much work those processes are doing (they could all be idle, or they could all be using 100% of all 4 cores whenever they get scheduled to run), and therefore no relationship to how much heat their workload is generating. CPUs can be damaged by excess heat (i.e. heat beyond what its heatsink and cooler fan or whatever can get rid of), not just by running lots of processes. – cas Jan 22 '18 at 2:33
  • if your system can't run all cores at 100% sustained for a long period of time (i.e. "indefinitely"), then you need to improve the cooling system. e.g. bigger, better heatsink and fan, or a liquid cooling rig. – cas Jan 22 '18 at 2:35
  • Yes these processes use the CPU at 100%, thanks – Zeno Raiser Jan 22 '18 at 7:08
0

@cas 's response is what i needed:

The load average is the average number of processes running/waiting for CPU time in a given time period. It has no direct relationship to how much work those processes are doing (they could all be idle, or they could all be using 100% of all 4 cores whenever they get scheduled to run), and therefore no relationship to how much heat their workload is generating. CPUs can be damaged by excess heat (i.e. heat beyond what its heatsink and cooler fan or whatever can get rid of), not just by running lots of processes. – cas 11 hours ago

if your system can't run all cores at 100% sustained for a long period of time (i.e. "indefinitely"), then you need to improve the cooling system. e.g. bigger, better heatsink and fan, or a liquid cooling rig

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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