Microthreads without Stackless?

Bernhard Mulder bwm at acm.org
Sat Sep 11 19:18:56 CEST 2004

Take a look at 

Michael Hobbs wrote:

> Does anyone know of an existing package that provides microthreads, other
> than Stackless Python? I would like to be able to provide microthreads in
> my Candygram package, but I'm not interested in Stackless (for various
> reasons).
> In theory, it should be fairly straightforward to do preemptive
> microthreading using a combination of generators and a separate IO thread.
> The IO thread would poll for pending IO events and also periodically call
> thread.interrupt_main() to preempt the current generator.

More information about the Python-list mailing list