Stackless Platform Independence?

Frederic Giacometti frederic.giacometti at arakne.com
Mon Mar 4 09:11:47 EST 2002


Aahz Maruch wrote:

> >
> >Just reverse the paradigm: have the python VM run in a single thread,
> >using stackless microthreads for python multithreading, and run the C
> >calls in a pool of threads.  This way: no lock is needed, since only
> >one thread runs the VM, with the help of microthreads, and C calls run
> >in other threads.
>
> This doesn't make any sense unless you assume OS-level threads, and I
> thought part of the point of Stackless was to avoid requiring OS-level
> threads.

More precisely, the point of stackless is to dispense from OS threads (and Python
lock) overheads for running threaded Python bytecode.
However, OS threads are still required to take charge of calls to blocking C
function (usually from external C libraries) that one want to run asynchronously
to the PVM; there is no turn around to this.

FG









More information about the Python-list mailing list