[PyQt] Multi-tasking and GIL

Hans-Peter Jansen hpj at urpla.net
Tue Aug 4 11:17:30 BST 2009

Am Dienstag, 4. August 2009 schrieb NARCISO, Rui:
> Hi
> I have a quad-core linux machine and I would like to take advantage of
> all these extra cores to perform multiple heavy tasks simultaneously.
> If i understood it correctly, the GIL will prevent me from
> multi-threading this heavy tasks in order to make them run in parallel.
> My question is then, how to do this? Will QProcess be the solution? (the
> heavy tasks can either be ran by direct python acess through a run()
> function or in stand-alone when launched from the command line)

If you launch them via independant processes, the GIL cannot get in your 
way, since it's a python process internal flag.

> Thanks for your help
> Rui

I know, it's not your fault, but SCR:

> The information in this e-mail is confidential. The contents may not be
> disclosed or used by anyone other then the addressee. Access to this
> e-mail by anyone else is unauthorised. If you are not the intended
> recipient, please notify Airbus immediately and delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness
> of this e-mail as it has been sent over public networks. If you have any
> concerns over the content of this message or its Accuracy or Integrity,
> please contact Airbus immediately. All outgoing e-mails from Airbus are
> checked using regularly updated virus scanning software but you should
> take whatever measures you deem to be appropriate to ensure that this
> message and any attachments are virus free.

More information about the PyQt mailing list