Saturday, September 15, 2012

NTVDM: Processor Affinity

From a shortcut


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:

C:\Windows\System32\cmd.exe /C start /affinity 1 dfrgui.exe

References


Change the Processor Affinity setting in Windows 7 to gain a performance edge By Greg Shultz, TechRepublic
Troubleshooting an MS-DOS application which hangs the NTVDM subsystem in Windows XP and Windows Server 2003 by Mark Wilson
Older Foxpro Dos freezing on XP. Visual FoxPro Developer Center