Tips & Tricks

How to Assign Specific CPU Cores to an Application in Windows

Assigning specific CPU cores to an application in Windows is achieved by setting processor affinity or adjusting process priority. This is done via the Details tab in Task Manager by right-clicking a process to select Set affinity or Set Priority.

How to Assign Specific CPU Cores to an Application in Windows

Modern laptops typically have many CPU cores, and Windows is usually good at distributing tasks across them. Still, you can improve performance and solve certain specific problems by dedicating particular CPU cores to an application. This is known as setting processor "affinity."

How to set CPU core affinity in Windows

To set processor affinity in Windows, follow these steps:

Open Task Manager by pressing Ctrl + Shift + Esc. Click the Details tab to see the list of running processes.

How to assign specific CPU cores to an application in Windows
The process list in Task Manager

Right-click the process you want to set processor affinity for and choose Set affinity from the context menu.

How to assign specific CPU cores to an application in Windows
Setting affinity for a process in Task Manager

In the pop-up window that appears, check the boxes next to the processors you want the process to run on.

How to assign specific CPU cores to an application in Windows
Choosing processor affinity in Task Manager

Click OK to save the changes and close the window.

How to set process priority in Windows

Alternatively, if you want to set a process's priority in Windows so the system gives one process more CPU resources than the others, follow these instructions:

Open Task Manager by pressing Ctrl + Shift + Esc and click the Details tab to see the list of running processes. Right-click the process you want to prioritize and choose Set Priority from the context menu.

How to assign specific CPU cores to an application in Windows
Setting process priority in Task Manager

Choose the priority level you want from the drop-down menu and click OK to save your changes.

The available priority levels are:

  • Realtime: The process gets the highest priority and takes the most CPU time.
  • High: The process gets high priority and is allocated a significant amount of CPU time.
  • Above normal: The process gets higher than normal priority and is allocated more CPU time than ordinary processes.
  • Normal: The process gets standard priority and a standard allocation of CPU time.
  • Below normal: The process gets lower than normal priority and is allocated less CPU time than ordinary processes.
  • Low: The process gets low priority and is allocated the minimum amount of CPU time.

All in all, manually assigning processors can be a useful way to tune your system's performance. However, it is important to do this carefully and with a full understanding of the potential risks.

Share: Facebook X / Twitter Email Pinterest LinkedIn
Question and answer (0 comments)

Your name and comment are shown publicly; your email is not. See Privacy Policy.

Table of contents
  1. How to set CPU core affinity in Windows
  2. How to set process priority in Windows