In other circumstances, you might be able to achieve better overall performance from certain applications by configuring each of them to run on different processor cores. Fortunately, Windows 7 allows you to configure applications to use only one, or several, of the processor cores in a multi-core system by using the Processor Affinity setting.
Changing the Processor Affinity setting from within Task Manager is a pretty straightforward operation once you know how to do it. I then started each application running -- Microsoft Security Essentials performing a full scan and Disk Defragmenter defragging a GB disk. Now, of course, my example combination is purely for the sake of showing each CPU handling a separate process.
Now if you find that running an application on a specific CPU core works well, you might want to use it again in the future. If so, chances are that you won't want to have to go through the Task Manager each time.
Fortunately you can create a shortcut to launch an application with a specific affinity setting. For example, to launch Disk Defragmenter so that it runs only on CPU 0, you would create a shortcut with the following command line:. However, the CPU core number can be calculated more easily using binary numbers.
For instance, the command. If you convert 3 into a binary number you will get Under the affinity mask system, processors are numbered from the right to left beginning with 0 and since there are 1's in the first two places, this indicates CPU 0 and CPU 1. Last Updated on February 18, Whether you want to squeak out some extra Windows 7 performance on your multi-core processor or run older programs flawlessly, you can set programs to run on certain cores in your processor.
Just about any computer you might use today will have more than one core in its CPU. Did you know that having more cores is not always the best option for programs running on your machine? This especially effects older programs that are designed to run on a single core or dual core.
Programs such as these may be greatly improved in performance by telling it to run on a single core. Even some newer applications just were not made to be run on multiple cores. Unfortunately, program will attempt to use all cores on your CPU. So, if you have a quad core, the program will be split across all four cores. You might be playing an old video game or using a very old program that runs glitchy or crashes a lot.
This is circumstance setting the application to run on one core can solve that issue. We can also use this same ability to make our computer run more efficiently as a whole. For example, your anti-virus probably takes up a lot of power across all your cores, especially when you run a scan of your entire computer. This can be noticeable as your computer slows down to a halt, and prevents other applications from running well while your anti-virus is sucking up the juice from all your cores.
This is an excellent opportunity to try setting the anti-virus to just run on one core. This feature enables applications to protect their own onscreen window content from being captured or copied through a specific set of public operating system features and APIs.
It is important to note that unlike a security feature or an implementation of Digital Rights Management DRM , there is no guarantee that using SetWindowDisplayAffinity and GetWindowDisplayAffinity , and other necessary functions such as DwmIsCompositionEnabled , will strictly protect windowed content, for example where someone takes a photograph of the screen.
SetWindowDisplayAffinity , Windows. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode.
0コメント