As a developer, once or twice a week I run a full build on my XP dev machine.

This will run at 100% cpu for 30 or 40 minutes, making my machine useless for anything other than basic browsing & email.

Is there anyway I can specify that for a given process (i.e. a command prompt) it and any process spawned by it will have a lower priority, say taking up no more than 60 - 70% of CPU, leaving my machine more usable.

I don't mind the build talking 30 or 40% longer, if I still have use of my machine while it's running. I'd love to be able to throw more hardware at the problem, but that isn't under my control.

link|improve this question
feedback

4 Answers

up vote 8 down vote accepted
start /low app.exe

Seems like it would do what you want. You can only start applications in the Low class though, not in BelowNormal.

link|improve this answer
It does EXACTLY what I want, thanks rix. – Binary Worrier May 20 '09 at 8:46
feedback

I just did this:

  1. Spawn command prompt (start -> run -> cmd)
  2. Task Manager, Right Click command, goto process
  3. Set priority to Low
  4. Ran a program from the command prompt
  5. It had low priority

You might be able to make a shortcut or a wrapper program to spawn a prompt that's already low so you don't have to do the juggling.

link|improve this answer
feedback

A new process will inherit the priority of its parent. EG: launching the Command Prompt and lowering the priority of it will then impact all child processes created -- Cant use the command line to run something? Then lower the CMD prompt and lauch EXLOPRER to give you GUI access to whatever :)

link|improve this answer
feedback

get a CMD prompt window and then launch a new one with START /LOW CMD

everything created in the second window will inherit the /LOW priority of the parent process

link|improve this answer
What, you mean like the accepted answer says from over 2 years ago??!!!!! Seriously dude. – Ben Pilbrow Sep 5 '11 at 21:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.