Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I launch VCExpress.exe in BELOW_NORMAL priority. However, it calls bscmake.exe, cl.exe, link.exe, and possibly other processes in NORMAL priority. Is there a way to prevent this? One ugly and not very robust solution is to create a scheduled task that looks for those executables periodically and changes their priority? I've found one solution since posting: installation of Prio. This works for personal usage, but would require a license for commercial.

I am trying to modify my code that compiles from the command line, so that all related processes are in BELOW_NORMAL priority. That way, my computer does not lock up and allows me to at least surf the internet while I wait for compilation of multiple builds and more than a dozen projects to complete.
Posted
Updated 31-Dec-10 16:58pm
v2
Comments
Sergey Alexandrovich Kryukov 1-Jan-11 7:11am    
May I ask why?
T2102 1-Jan-11 7:24am    
I like to be able to use my laptop when running at 100% cpu.

1 solution

There are no options to do this. Everything is going to get launched at normal priority. Since you have no control over the code that is launching the compiler, you'd have to manually change the priority after it's been launched.
 
Share this answer
 
Comments
T2102 2-Jan-11 18:05pm    
Installing Prio worked great. I am just not sure how they customized the task manager. Prio runs a service, so I am guessing that there is some type of event that is triggers when a new process is launched. Then prio's service automatically changes the priority to the one you saved.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900