Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

how to indicate a specific cpu to run a qthread?



  • i define four time-consume qthread,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 qthread.


  • Lifetime Qt Champion

    Hi,

    AFAIK, it's not possible from QThread. If you need that feature you need to go on a lower level and use pthread directly (assuming your run Linux on your target)


Log in to reply