GIL release

Armin Steinhoff a-steinhoff at
Fri Mar 18 13:06:41 CET 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'.


> Thanks,
> agb.

More information about the Python-list mailing list