Slow network?

Laszlo Nagy gandalf at shopzeus.com
Mon Jan 12 15:01:07 EST 2009


> You might also want to replace those 'pass' statements when smartqueue 
> is empty or full with time.sleep() to avoid busy waiting.
It won't do busy waiting, because read_str and write_str are using 
select.select and they will block without using CPU time, until data 
becomes available to read/write.



More information about the Python-list mailing list