GIL release

Armin Steinhoff a-steinhoff at web.de
Fri Mar 18 07:06:41 EST 2005


Alastair Basden wrote:
> Hi,
> Does anyone know whether there is a way for a python thread to release 
> the global interpreter lock, and let all other threads have a chance at 
> running before re-acquiring it?  Does the thread scheduling follow a 
> round-robin method?

The thread itself are scheduled by the OS ... the access to the GIL is 
managed by 'cooperative scheduling'.

--Armin

> 
> Thanks,
> agb.



More information about the Python-list mailing list