[Stackless] Mixing os threads and stackless

Lloyd Weehuizen lloyd at fusion.net.nz
Wed Apr 26 13:32:47 CEST 2006


Johan Carlsson wrote:

>> I don't *think* you'd get much advantage with this as the python 
>> global interpreter lock will block all threads while another is 
>> executing so you might as well run a single thread with all your 
>> tasklets in it?

> Why would the PGIL block all threads?

Correct me if I'm wrong but afaik the PGIL only allows one thread to be 
executing python code ( or C code called from python that hasn't 
explicitly released the PGIL ) at any one time?



_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list