Stackless, thread paradigm and C extensions

Frederic Giacometti frederic.giacometti at arakne.com
Sat Nov 10 15:39:24 EST 2001


"Michael Hudson" <mwh at python.net> wrote in message
news:u4ro58kzx.fsf at python.net...
> "Frederic Giacometti" <frederic.giacometti at arakne.com> writes:
>
> [schnipp]
> > Does this make sense?
>
> But isn't the point of many multithreaded apps allowing code to run
> during blocking IO operations?  Your approach would knock that on the
> head.

In the proposed design, stackless call to another thread never blocks the
thread; it inserts a frame in one of the thread frame schedulers.
Just as all C functions external to the Python interpreter core, IO
functions run outside the interpreter thread.

FG






More information about the Python-list mailing list