Beazley on Generators

Michele Simionato michele.simionato at gmail.com
Wed Apr 1 04:22:30 EDT 2009


On Apr 1, 7:57 am, Lawrence D'Oliveiro <l... at geek-
central.gen.new_zealand> wrote:
> In message
> <d2733ede-4d66-40a2-9a63-60d5363db... at q16g2000yqg.googlegroups.com>, Michele
>
> Simionato wrote:
> > Excellent reading for everybody wanting to understand cooperative
> > concurrency!
>
> Hey, some of us were doing "cooperative concurrency" programming old MacOS
> for years. It was generally considered a poor alternative to "true
> multitasking".

It is a poor alternative compared to OS level processes and even
compared to preemptive threads in some cases. However, there are
situations
when you need thousands of lightweight threads of execution, and
in that case coroutines could be the only viable solution.
Just read David Beazley's presentation.



More information about the Python-list mailing list