how can i run a application with 4 cpus?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how can i run a application with 4 cpus?

596 次查看
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?

标签 (1)
0 项奖励
1 回复

508 次查看
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 项奖励