[Qt-interest] QThread and multi-core

Paul Floyd paulf at free.fr
Fri Apr 3 17:10:39 CEST 2009


Quoting "NARCISO, Rui" <RUI.NARCISO at airbus.com>:

> Is there any way with python thread or even QThread to force the threads to
> be executed on a CPU which is not the main CPU ?
>
> I have a quad core and only CPU 1 is being used for the threads I create.

Hi

There are mechanisms, but they are very low level, and unless you are really
certain of what you are doing, you're going to be better off letting the OS
scheduler sort things out for you.

That said, what have you done to observe multiple threads all trying to execute
on the same CPU?

A+
Paul




More information about the Qt-interest-old mailing list