强制VCExpress.exe以较低的优先级启动进程 [英] Force VCExpress.exe to launch processes in lower priority

查看:124
本文介绍了强制VCExpress.exe以较低的优先级启动进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以BELOW_NORMAL优先级启动VCExpress.exe.但是,它会以NORMAL优先级调用bscmake.exe,cl.exe,link.exe以及可能的其他进程.有办法防止这种情况吗?一个丑陋但不是很可靠的解决方案是创建一个计划任务,该任务定期查找那些可执行文件并更改其优先级?自发布以来,我找到了一个解决方案:安装Prio.这适用于个人使用,但需要获得商业许可.

我正在尝试修改从命令行编译的代码,以便所有相关进程都处于BELOW_NORMAL优先级.这样,我的计算机就不会锁定,并且至少在等待多个版本的编译和多个项目的完成时允许我浏览互联网.

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.

推荐答案

没有任何选项可以执行此操作.一切都会以正常优先级启动.由于您无法控制启动编译器的代码,因此启动后必须手动更改优先级.
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.


这篇关于强制VCExpress.exe以较低的优先级启动进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆