Set affinity with start /AFFINITY command on Windows 7

前端 未结 3 950
囚心锁ツ
囚心锁ツ 2020-11-30 05:53

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

3条回答
  •  难免孤独
    2020-11-30 06:42

    To get right HEX number imagine your cores in plane format 8765 4321 (for 8-core CPU) in backward direction (but NOT like 1234 5678)

    To get cores 7, 6 and 3 activated, type number 0x64 for affinity:

    /AFFINITY 0x64
    

    For better look, match and compare: 0110 0100 - number = 0x64 (8765 4321) - cores

    For @ladenedge example: /AFFINITY AA 1010 1010 - number = 0xAA (8765 4321) - cores

    See also: Start an Application Assigned to a Specific CPU in Windows 7, 8, or Vista

提交回复
热议问题