Windows 中“nice”的等效词
Windows 中是否有与 Unix 命令相当的命令,nice?
我专门寻找可以在命令行中使用的东西,而不是任务管理器中的“设置优先级”菜单。
我在谷歌上寻找这个的尝试被那些想不出更好形容词的人挫败了。
Is there a Windows equivalent of the Unix command, nice?
I'm specifically looking for something I can use at the command line, and not the "Set Priority" menu from the task manager.
My attempts at finding this on Google have been thwarted by those who can't come up with better adjectives.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
来自 http://techtasks.com/code/viewbookcode/567
from http://techtasks.com/code/viewbookcode/567
如果您想在启动进程时设置优先级,可以使用内置的 START 命令:
使用低至低于正常选项来设置启动命令/程序的优先级。 似乎是最直接的解决方案。 无需下载或编写脚本。 其他解决方案可能适用于已经运行的进程。
If you want to set priority when launching a process you could use the built-in START command:
Use the low through belownormal options to set priority of the launched command/program. Seems like the most straightforward solution. No downloads or script writing. The other solutions probably work on already running procs though.
如果您使用 PowerShell,您可以编写一个脚本来让您更改进程的优先级。 我在 Monad 博客< 上找到了以下 PowerShell 函数/a>:
在 PowerShell 提示符下,您可以执行以下操作:
If you use PowerShell, you could write a script that let you change the priority of a process. I found the following PowerShell function on the Monad blog:
From the PowerShell prompt, you would do something line:
也许您想考虑使用 ProcessTamer 来“自动化”降级过程或根据您的设置升级进程优先级。
我已经使用它两年了。 非常简单但是非常有效!
Maybe you want to consider using ProcessTamer that "automatize" the process of downgrading or upgrading process priority based in your settings.
I've been using it for two years. It's very simple but really effective!