or enables the binding and un-binding of a or to a physical CPU or a range of CPUs, so that the process or thread in question will run only on the CPU or range of CPUs in question, rather than being able to run on any CPU
By default, Windows runs an application on all available cores of the processor. If you have a multi-core processor, then this tutorial will show you how to set the of an application to control which core(s) of the processor the application will run on.
If the application and CPU supports or , then Windows will automatically adjust the application's usage of each processor core for the best performance. You will not gain much, if anything, from manually changing the processor affinity for these type of applications.
If you have more then one processor intensive applications running, then you could improve their performance by setting the processor affinity of their processes to run on a different core(s). This way they are not competing for the resources of the same core(s).
This tutorial will show you how to create a that will always with a set by default in XP, Vista, Windows 7, and Windows 8.
This step will show you how many CPU cores you have, and how to figure the value to use at below for the CPU(s) you want to run the application on.
If you should need any assistance with this step, then please feel free to post. I'll be happy to help.
A) Open (CTRL+Shift+ESC) in more details view, click/tap on the (XP, Vista, Windows 7) OR (Windows 8) tab, right click or press and hold on any process in the column, and click/tap on . (see screenshot below)
This will show you how many CPU cores you have. I have CPU cores numbered from .
B) For how many CPU cores you have will also be how long the binary number will be. Since I have CPU cores, the binary number will be 12 zeros . Each zero in the binary number represents a CPU core number from right to left. In my case with 12 CPU cores, the in the binary number will be for , and the will be for . (see screenshot below)
C) For each CPU number you want to run the application on, replace (off) with (on) in the binary number for the CPU numbers.
For example, if I wanted to run the application only on , then my binary number would be changed to . To run the application on and , I would use . (see screenshot below)
D) Go the website below, and type your from step 1C above into the field. This will convert the binary number to a (hex) that you will need to use at below.
Website: Binary/Decimal/Hexadecimal Converter
For example, with my binary number, I get a value of . (see screenshot below)
Right click or press and hold on an empty area of your desktop, and click/tap on and.
Type the command below into the location area, and click/tap on the button. (see screenshot below)
I would type this command below exactly if I wanted to create a shortcut to run on only (step 1), and it's .exe file is located at ““.
(For only on CPU 0)
(For on CPU 0 and CPU 3)
Type any you would like to give the shortcut, and click/tap on the button. (see screenshot below)
Right click or press and hold on the new shortcut, and click/tap on .
Click/tap on the tab, then click/tap on the button. (see screenshot below)
In the line under “Look for icons in this file”, copy and paste the same used in the shortcut below, and press . (see screenshot below)
E:\Programs\Process Monitor 3.05\Procmon.exe
Select (highlight) the icon you want for the shortcut, and click/tap on . (see screenshot above)
You can use any icon that you would like instead though.
Click/tap on . (see screenshot below step 6)
In and , you can now (Windows 7 only) or , add to , to it, or move this shortcut to where you like for easy use.
In , you can on desktop, screen, add to , to it, or move this shortcut to where you like for easy use.