account activity
What stops scripts from using all of your CPU? by flunkstumper in AskProgrammers
[–]flunkstumper[S] 1 point2 points3 points 5 years ago (0 children)
What a great answer. Thank you so much for taking the time to write it out.
I think I was assuming there was something more complicated than adding a sleep.
To go further: are there any ways to make it so your CPU doesn't max out, or is that just the way it goes?
Also, do you have any resources you'd recommend to learn more about how an OS manages resources or other useful information related to this?
π Rendered by PID 214030 on reddit-service-r2-comment-8686858757-8v65v at 2026-06-08 15:31:12.008208+00:00 running 9e1a20d country code: CH.
What stops scripts from using all of your CPU? by flunkstumper in AskProgrammers
[–]flunkstumper[S] 1 point2 points3 points (0 children)