CPU Affinity Mask Calculator


on GitHub



How to Set the CPU Affinity of a Windows Process Permanently

The best way to set a CPU affinity permanently on Windows is to use Process Lasso. The custom CPU affinity will be applied each time the process is run.

CPU Affinity Rules
Process Lasso CPU Affinity Rules

Alternatively, if you want to start a program at a specific CPU affinity once, you can use cmd.exe’s Start command:

start /affinity 0x0000000000055500 notepad.exe 

When run from the Start Menu, you would need to include the command shell (cmd.exe), for example:

c:\windows\system32\cmd.exe /C start /affinity 0x0000000000055500 notepad.exe