Microthreads without Stackless?
Bernhard Mulder
bwm at acm.org
Sat Sep 11 13:18:56 EDT 2004
More information about the Python-list mailing list
Sat Sep 11 13:18:56 EDT 2004
- Previous message (by thread): Microthreads without Stackless?
- Next message (by thread): Microthreads without Stackless?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Take a look at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/300019 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. > >
- Previous message (by thread): Microthreads without Stackless?
- Next message (by thread): Microthreads without Stackless?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list