开发者

Set SetThreadAffinityMask greater that number of processors

Who knows, what will be, if I set SetThreadAffinityMask for example 0x00000002, and开发者_StackOverflow中文版 program will run onto PC with only one CPU? I didn't find about that moment on literature.


The system ignores any bits that do not correspond to processors. For your example, therefore, you are attempting to set the thread to have affinity with none of the available processors in the process affinity mask and the call to SetThreadAffinityMask fails.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜