Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: g to happen. Infinite Loops If your program goes into an infinite loop, it does not pause and wait, constantly demands attention. OS stops it now and then to handle necessary business, but always gives control back to your program. Your machine does not lock up, but slows way down. Our Animation Loop alive = True while alive: alive = gr.sleep(.5) gr.sleep(.5) The gr.sleep() function is where we pause and gr.sleep() let other programs run. Well, actually, we call the function in, whi...
View Full Document

This note was uploaded on 04/14/2008 for the course ECS 10 taught by Professor Amenta during the Fall '07 term at UC Davis.

Ask a homework question - tutors are online