Change Processor Affinity for a Program in Windows 11

Limit which CPU cores a running program can use by changing its processor affinity in Task Manager — useful for troubleshooting, legacy apps, and performance tuning.

What the video covers

Adjusting processor affinity for a running application using Windows 11 Task Manager. This affects the current process only and does not permanently change system-wide settings.

Watch the video on YouTube

Step-by-step instructions

  1. Open Task Manager
    Press Ctrl+Shift+Esc to open Task Manager.
  2. Show process details
    Switch to the Details tab to see individual running processes.
  3. Select the target process
    Right-click the program or process you want to control in the Details list.
  4. Open affinity settings
    Choose Set affinity from the context menu to open the CPU core selection dialog.
  5. Choose cores
    Check the CPU cores you want the process to use and uncheck the others, then click OK to apply.
  6. Verify the change
    Watch the process’s CPU usage in Task Manager to confirm activity is confined to the selected cores.

Watch the video

Video thumbnail for Change Processor Affinity for a Program in Windows 11 Play tutorial

Watch on YouTube

Why it matters

Some applications benefit from being restricted to specific CPU cores — for compatibility, to avoid contention with other processes, or to stabilize performance during testing.

Check your result

After applying affinity, the selected app will run only on the checked CPU cores. You can monitor its CPU usage in Task Manager to confirm activity is limited to those cores.

Troubleshooting

If Set affinity is disabled or not available, you might need administrative rights or the process may be protected by the system. Affinity changes apply to the current process and typically reset when the program restarts; use a startup script or launcher if you need a persistent setting. If performance gets worse, restore the original affinity (or set it back to use all cores).