I am using the start /AFFINITY [n] [.exe] command to start an executable with the specified affinity. I have a system with 8 processors (1,2,3,4,5,6,7,8). I\'d
More info for your own computation needs:
CPU ID CPU value (dec)
0 001 (= 2^0)
1 002 (= 2^1)
2 004 (= 2^2)
3 008 (= 2^3)
4 016 (= 2^4)
5 032 (= 2^5)
6 064 (= 2^6)
7 128 (= 2^7)
Consequently:
Reference: search the 'These are affinity mask values for an 8-CPU system' pattern at https://msdn.microsoft.com/en-US/library/ms187104.aspx.