<br><br><div><span class="gmail_quote">On 2/23/06, <b class="gmail_sendername">Claudio Grondi</b> <<a href="mailto:claudio.grondi@freenet.de">claudio.grondi@freenet.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Paul Probert wrote:<br>> Hi,<br>>   My app runs in a loop looking for changes in a database, and like a<br>> good boy I call time.sleep(1) inside the loop. Unfortunately this<br>> sometimes runs for 200 seconds or so, presumably while my OS is calling
<br>> Bill Gates to tell him what I've been doing. This happens under NT4,<br>> W2k, and XP. What do people do to fix this? Thanks!<br>><br>> Paul Probert<br>> University of Wisconsin<br>><br><br>In similar situation I would start to blame the hardware for the
<br>problem, so below a kind of checklist to go through:<br><br>   1. have you changed any hardware?<br>   2. have you installed new drivers?<br>   3. have you connected via USB/Firewire/IDE or other interfaces/ports<br>etc. some new devices?
<br>   4. have you installed new BIOS?<br>   5. is your RAM ok?<br>   6. are you sure there is no CD/DVD in your CD/DVD drive?<br>   7. are you sure there is no floppy disk in your floppy drive?<br>   8. are you sure your CPU/motherboard/RAM is not overheating?
<br><br>Claudio<br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>So what exactly does the loop do? Try running the loop without sleep and then see how long that takes.
<br clear="all"><br>-- <br><br><br><br>-Ivan