Greenlets: where are they now???
davebrok at soda.csua.berkeley.edu
Tue Sep 14 05:12:07 CEST 2004
"Peter Hansen" <peter at engcorp.com> wrote in message
news:29Cdnar3ZOqUFtjcRVn-pg at powergate.ca...
> > Greenlets are about 90% of a solution (which I've thought hard about) to
> > problem of interrupting an execution after 50 byte-code, while retaining
> > ability to resume the execution (for, say, another 50 byte codes).
> Python's regular threads already allow this, so there must be
> something more to it.
I haven't the faintest idea how to gain fine control over threads. In
particular, suppose I have 10 of these "executions" going (lets call them
"steplets") and I want to run each of them for 50 byte-codes, then switch
back to the controlling thread and do lots of bookkeeping (I don't control
the code that the steplets run). I also have a bunch of other processes that
I don't want to take part in this "cycle rationing" but rather run as honest
More information about the Python-list