how can i run a application with 4 cpus?

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i run a application with 4 cpus?

232 Views
hubing1
Contributor II

i use qt to define four time-consume qthreads,and when i run the program on my arm board,the process runs in only one cpu core. And the running cpu will change.

2015-11-21 21_11_32屏幕截图.png

how can i indicate a specific cpu to run the qthreads. what's more,how can i use 4 cpu cores to run the program?

Labels (1)
0 Kudos
1 Reply

144 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi hu

linux assigns processes on cores automatically, as for Qt seems

it is necessary to use QtConcurrent :

https://forum.qt.io/topic/6712/qt-multi-core-capability/4 

http://doc.qt.io/qt-5/qtconcurrent-index.html

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos