Hi all, Just a quick question, really. Is there any good way to have an infinite loop in a program, without said infinite loop eating up the CPU? I've tried the trick of adding a pause (time.sleep(0.01)) somewhere in the loop, and this appears to have worked on a basic infinite loop, but this doesn't appear to work for two separate infinite loops (in threads).
Thanks in advance. -- Regards, Jonathan McManus
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor