开发者

Set SetThreadAffinityMask greater that number of processors

开发者 https://www.devze.com 2023-03-15 12:23 出处:网络
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

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

精彩评论

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