tag:blogger.com,1999:blog-1513551336296610535.post7449001940116851709..comments2022-03-26T07:36:27.090-07:00Comments on Pythonic Prose: python - while loop specified time frameUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1513551336296610535.post-87799662288603949282010-08-20T13:02:15.157-07:002010-08-20T13:02:15.157-07:00@geekbuntu - thanks for the question! I posted my ...@geekbuntu - thanks for the question! I posted my solution to <a href="http://pythonicprose.blogspot.com/2010/08/limit-cpu-percentage-for-script.html" rel="nofollow">limiting the cpu here. </a> I use the os module so it should be portable across several OSes. Enjoy!stevehttps://www.blogger.com/profile/09988765338863211789noreply@blogger.comtag:blogger.com,1999:blog-1513551336296610535.post-90817534047848155272010-08-20T08:16:45.638-07:002010-08-20T08:16:45.638-07:00is there way to setup this while loop to run while...is there way to setup this while loop to run while the cpu is below a specified threshold? to keep it from monopolizing resources.<br />experimenting with psutil - it works great with linux, but my backup scripts are resource hogs.Anonymousnoreply@blogger.com