Python threading (was: Re: global interpreter lock not working as it should)
Martin v. Loewis
martin at v.loewis.de
Tue Aug 6 04:45:39 EDT 2002
anton wilson <anton.wilson at camotion.com> writes:
> Well, when I said coincidence, I didn't necessarily mean huge, it
> works, but when compared to the number of times it tries to give up
> the interpreter . . .
... then you'll find that it works precisely as designed.
> The timer tick does happen 100x per second and since python gives up
> the lock every 10 us or so, it's really not a huge coincidence for
> an overlap. I just don't really like the reliance on this
Accept it. It is meant to work this way.
More information about the Python-list