Jython, GILs and object locking.

Michael Chermside mcherm at mcherm.com
Wed Oct 15 10:04:30 EDT 2003
Jon Franz writes:
> > In principle, I think mentioning this is a good idea.
> > HOWEVER, I have seen lots of newbies who think that Python
> > can't use threading (at all!) because of the GIL. And
> > that's simply wrong. So the warning would need to be
> > worded very carefully.
> 
> Very true, giving a incorrect or bad impression would be, well, bad.
> 
> How about something like:
> 
> "Please note that threads created with this module may not take full 
> advantage of multiprocessor systems.  For futher information on 
> this issue, please refer to XXX." 
> 
> Where XXX is a reference describing the GIL and the limitations it 
> imposes.
> 
> Good, bad, ugly?

Excellent. (IMHO)

-- Michael Chermside






More information about the Python-list mailing list