Python threading - some ports depend on it, others break with it

Michael P. Soulier msoulier at digitaltorque.ca
Wed Jan 9 18:46:12 PST 2008


On 10/01/08 Danny Pansters said:

> It's my understanding that threading *in* python works well, but threading 
> *with* python doesn't and you shouldn't use/rely on it. I'm afraid I can't 
> tell you much more without an hour of googling and I wouldn't be sure if I 
> can adequately explain after. I think it has to do with the GIL.
> 
> I suggest to ask at freebsd-python at freebsd.org.

Threading in Python works fine in my experience, even using native threads. It
is not very efficient on multi-core systems though, due to the GIL (global
interpreter lock). 

Mike
-- 
Michael P. Soulier <msoulier at digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080110/aee02566/attachment.pgp


More information about the freebsd-questions mailing list