[PyQt] Global Interpreter Lock

Jason Voegele jason at jvoegele.com
Fri Apr 10 20:50:58 BST 2009


On Friday 10 April 2009 02:35:32 pm Arnold Krille wrote:
> Are your QThread-derived threads written in python or in C++? If they are
> python, you hit the same limitation the threading-derived threads hit: Only
> one thread can be executed in the python-interpreter at a time. And even if
> PyQt releases the GIL automaticly, it can't release it if you are executing
> python-code.
> If your threads are C++ classes I think SIP/PyQt will release the GIL so
> your threads will truly run in parallel (assuming you have more then one
> processor).

Hi Arnold,

I answered this in my reply to Giovanni.  My QThread derivatives are in 
Python.  From what I've read so far, that sounds like bad news. :(

-- 
Jason Voegele
It seems like the less a statesman amounts to, the more he loves the flag.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090410/07f1a6fb/attachment.bin


More information about the PyQt mailing list