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

Martin v. Loewis martin at v.loewis.de
Tue Aug 6 00:11:02 CEST 2002


bokr at oz.net (Bengt Richter) writes:

> The real question before making changes, though, is what was the
> design intent for relationships between threads competing for the
> GIL

The intent is to
a) to operate similarly on a wide range of systems,
b) minimise the overhead that threading takes, compared to a non-threaded
   application, and
c) provide a minimum amount of fairness, if the underlying system has
   some guarantee of fairness. IOW, starvation should not be observable
   in real life.

Regards,
Martin



More information about the Python-list mailing list