Sockets and threads
jude-venn at blueyonder.co.uk
Thu Jun 12 20:14:19 CEST 2003
On Thu, 12 Jun 2003 16:16:39 GMT
"Byron Morgan" <lazypointer at yahoo.com> wrote:
> def main():
> while not msvcrt.kbhit():
> #uncomment sleep statement and cpu usage returns to normal.
There's your answer. Try...
>>> while 1: pass
...and see your cpu usage skyrocket. you'll have to sleep a bit to give the other thread(s) some space.
More information about the Python-list