how do I listen on a socket without sucking up all the CPU time?

Mike 'Cat' Perkonigg blablu at gmx.net
Tue Oct 3 10:21:40 EDT 2000


Hi!

There comes another question in mind: Can I somehow tell a thread that there 
is nothing to do so another thread can consume more time?
I heard the active thread changes if there are 10 byteOps are done. Does that 
mean I have just to implement a "while 1: pass" loop to have this thread 
consume less time?

Regards, 
Mike



More information about the Python-list mailing list