I have several thread. And I need to one thread execute on one core (processor) and the second thread execute on second core (processor).
I think QtConcurrent perform another function. Or I mistaken?
I have several thread. And I need to one thread execute on one core (processor) and the second thread execute on second core (processor).
I think QtConcurrent perform another function. Or I mistaken?
This is handled by OS not be program. And on most of the OS this is default behavior. Means If we created a threaded app. Then all cores of CPU will be utilized equally.
Programs written with QtConcurrent automatically adjust the number of threads used according to the number of processor cores available.
Bookmarks