Micro-Threads: uthreadsleep.py -- scheduling of uthreads to c ontinue processing after given seconds

Edward Jason Riedy ejr at lotus.CS.Berkeley.EDU
Thu May 25 00:35:34 CEST 2000


And Just van Rossum writes:
 - 
 - It appears to me that select.select() is only relevant in non-threaded 
 - programs (do you have an example of its use in a threaded 
 - environment?).

Zope.  In general, any time you can satisfy (100-k)% of the 
requests immediately, use select for those and spawn threads 
to handle the other k%.  (k depends on architecture, etc.)

Jason



More information about the Python-list mailing list