[Tutor] continuous running of a method

Steven D'Aprano steve at pearwood.info
Thu Aug 26 14:05:59 CEST 2010

On Thu, 26 Aug 2010 12:27:03 pm R. Alan Monroe wrote:
> > Any modern multi-tasking operating system will ensure than a while
> > loop doesn't kill your computer's responsiveness. A decent
> > operating system will still remain responsive even at 100% CPU
> > usage. Even Windows does that!
> Opinions vary. If you try this on a laptop, the end user will be
> quite annoyed to see their battery drop to zero, their cooling fans
> go into overdrive, and to receive first degree burns on their hands
> and/or lap.

Hmmm. Well, there is that. But the OS will remain responsive while 
you're looking for the burn cream for your lap!

> Busywaiting my cpu makes your program an instant candidate for
> immediate deletion. Maybe that's just me :)

Ah, I take it you've deleted the Flash plugin then? Or maybe it's just 
the Linux version that periodically goes nuts.

Steven D'Aprano

More information about the Tutor mailing list