Windows has an option that lets you start an application and set the CPU affinity, which assignsĀ the application to runĀ on a specific CPU in a dual-core system.
To start an application you have to pass the affinity flag toĀ the start utility in the command prompt. For instance, if you wanted to start notepad assigned to CPU, you could use the following command:
c:\windows\system32\cmd.exe /C start /affinity 1 notepad.exe
You can see in task manager that the process is only assigned to CPU 0
To start a process on CPU 0, use the following command switch:
/affinity 1
For CPU 1, use this switch:
/affinity 2
You can use a number up to the number of CPU cores or CPUs in your system. The affinity is essentially CPU core # + 1, so /affinity 5 would use CPU 4.
You can almost modify the shortcut for an item to make it run on the specific CPU, by just prepending the full “c:\windows\system32\cmd.exe /C start /affinity 1 ” onto the shortcut target. The only drawback to this approach is that the command prompt window will briefly flash on the screen.
- › How To Force Windows Applications to Use a Specific CPU
- › 8 Things You Didn’t Know You Could Do In Windows 7’s Task Manager
- › Here’s How Mozilla Thunderbird Is Making a Comeback in 2022
- › ExpressVPN Review: An Easy-to-Use and Secure VPN for Most People
- › 5 Annoying Features You Can Disable on Samsung Phones
- › Why Unlimited Mobile Data Isn’t Actually Unlimited
- › Why Do I See “FBI Surveillance Van” in My Wi-Fi List?
- › Using Wi-Fi for Everything? Here’s Why You Shouldn’t