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.
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?
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!
-----------------------------------------------------------------------------------------------------------------------