how can i run a application with 4 cpus?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how can i run a application with 4 cpus?

846 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
Reply
1 Reply

758 Views
igorpadykov
NXP Employee
NXP Employee

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
Reply