Python threading (was: Re: global interpreter lock not working as it should)

anton wilson anton.wilson at
Wed Aug 7 20:09:38 CEST 2002

On Tuesday 06 August 2002 06:49 pm, Martin v. Loewis wrote:
> anton wilson <anton.wilson at> writes:
> > This is true; however, we're still making tons of system calls to lock,
> > unlock and signal every ten byte-codes . . . system calls aren't very
> > fast either because you have to drop into kernel mode (also a switch).
> Now, that highly depends on the operating system. Atleast on Linux,
> there won't be any system calls to lock and unlock; there are system
> calls to signal.

Don't forget about the calls made by the one or two or more woken up threads 
when they realize the lock is still locked.

> Regards,
> Martin

More information about the Python-list mailing list