User forums > Help
How to run a project program as lower process priority?
photon3108:
In windows I can use start /belownormal to make the program runing at belownormal priority.
Is there any methods like this in code::blocks? Just the project program need it.
Code::blocks runs at normal priority.
thomas:
There's no such thing at the present time, and it's probably not easy to implement either, as wxExecute doesn't provide a means to control the process priority.
You can work around it if you must, by running your program as post-build step like this:
cmd /c start /belownormal yourprogram.exe
It may be possible to build this functionality into consolerunner by having consolerunner change its own priorty before starting the process, however this won't work with GUI programs then, as these are launched by Code::Blocks directly.
MortenMacFly:
--- Quote from: thomas on May 28, 2009, 03:04:12 pm ---cmd /c start /belownormal yourprogram.exe
--- End quote ---
Maybe not as post-build step but as tool. This way you can run *any* project / target executable with lower priority if you use the provided macros correctly.
Jenna:
--- Quote from: thomas on May 28, 2009, 03:04:12 pm ---You can work around it if you must, by running your program as post-build step like this:
cmd /c start /belownormal yourprogram.exe
--- End quote ---
You can also configure a tool to start the targets executable at low-priority.
See the attached screenshot.
EDIT:
crossed with MortenMacFly's post
[attachment deleted by admin]
MortenMacFly:
--- Quote from: jens on May 28, 2009, 03:10:45 pm ---EDIT:
crossed with MortenMacFly's post
--- End quote ---
Hehe...
Notice that you need to replace the "TARGET" string with the targets' name. So a for a target named "debug" it should look like this then:
"$(DEBUG_OUTPUT_FILE)"
Navigation
[0] Message Index
[#] Next page
Go to full version