Specify base priority when launching programs

5 February 2001 by Snakefoot | Comment » | Trackback Off
WinNT is able to give different amount of CPU time to each program dependent on their priority. This can be used to launch an application (Like a Game) in high priority so other applications will have a hard time stealing the CPU time:

Start "StartHigh" /HIGH C:\Q3\Quake3.exe

It can also be used to launch certain background applications (SETI, Folding, Grid etc.) with low priority, so they cannot take CPU time from other applications.

Start "StartLow" /LOW C:\Ud_Agent\Ud.exe

To see the possible startup options run:

Start /?

Besides using HIGH you can use these (Avoid RealTime if having only one CPU):
PriorityLevel
Realtime24
High13
Normal8
Low4
Abovenormal(Win2k+ only) 10
Belownormal(Win2k+ only) 6
Note instead of making a batch file for every application to launch it with a certain priority, then one can send an application into a certain priority by creating a batch file High.bat with the following contents and save it in the SentTo-Folder:

Start "StartHigh" /High "%1"

Note one can also add a new item "Start High Priority" to the context menu, so when right clicking an exe-file, one have the option to launch the exe-file with a certain priority.

REGEDIT4

[HKEY_CLASSES_ROOT\exefile\shell\StartHigh]
@="Start &High Priority"

[HKEY_CLASSES_ROOT\exefile\shell\StartHigh\Command]
@="cmd.exe /c start \"StartHigh\" /High \"%1\""

Note one can also change the priority right on the fly for a running application by using the Task Manager (CTRL+SHIFT+ESC).

More Info MS KB Q103475
More Info MS KB Q103810
More Info MS KB Q106253
More Info MS KB Q191771

Related Change your Processor quantums to tweak your applications

Credits ntfaq.com

Updated: 23 September 2007

Leave a comment


You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>