a***n 发帖数: 3633 | 1 【 以下文字转载自 Software 讨论区 】
发信人: addin (add+in), 信区: Software
标 题: 请问什么软件可以指定线程使用的CPU?
发信站: BBS 未名空间站 (Mon Oct 20 13:51:05 2008), 转信
一个process里有5个thread。怎么样可以让其中的2个使用CPU0,另外三个使用
cpu1?谢谢 | s******y 发帖数: 121 | 2 If you have source code, you can call SetThreadAffinityMask in the beginning
of the thread function to set each thread's processor affinity. If you don'
t have source code, you need to somehow get the thread handles of the
threads, then call SetThreadAffinityMask. | a***n 发帖数: 3633 | 3 appreciate it.
beginning
don'
【在 s******y 的大作中提到】 : If you have source code, you can call SetThreadAffinityMask in the beginning : of the thread function to set each thread's processor affinity. If you don' : t have source code, you need to somehow get the thread handles of the : threads, then call SetThreadAffinityMask.
|
|