我们可以确定创建的线程应在其上运行的处理器吗? [英] Can we decide a processor on which the created thread should run ?
本文介绍了我们可以确定创建的线程应在其上运行的处理器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们可以确定在其上运行创建的线程的处理器吗?
我们对C ++中的线程有更好的控制吗?
Can we decide a processor on which the created thread should run ?
Do we have such finer control over the threads in C++ ?
推荐答案
使用
请在这里找到我过去的解决方法: ^ ].
同样,除非您确切知道自己在做什么,否则不要干扰线程/进程的亲和力!
—SA Please find my past solution here: How to program multicore[^].
Again, don''t interfere in thread/process affinity unless you know exactly what are you doing!
—SA
这篇关于我们可以确定创建的线程应在其上运行的处理器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文