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.

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

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

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.

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.
