[Stackless] Wikipedia query

Stephan Diehl stephan at transvection.de
Tue May 12 20:57:31 CEST 2009


Hi Simon,

I'd say that the Wikipedia entry is wrong and should be corrected by a
competent person.
Stackless Python extends CPython with the concept of Tasklets, which
actually don't run concurrently at all. They are cooperativly scheduled.

Cheers

stephan

Simon Pickles wrote:
> Hello all,
> 
> I was intrigued by this entry in the Python Wikipedia entry:
> 
>> Stackless Python <http://en.wikipedia.org/wiki/Stackless_Python> is a
>> significant fork of CPython that implements microthreads
>> <http://en.wikipedia.org/wiki/Microthread>; it does not use the C
>> memory stack. CPython uses a GIL
>> <http://en.wikipedia.org/wiki/Global_Interpreter_Lock> to allow only
>> one thread to execute at a time while the Stackless Python threads are
>> independent of the OS and can run concurrently.
> Stackless python does not rely on the GIL?
> 
> Is this correct? I thought the Stackless scheduler was subject to the
> same GIL restrictions as any other python thread.
> 
> Thanks
> 
> Simon
> 
> 
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless




More information about the Stackless mailing list