在 Windows 任务管理器中更改进程优先级会导致问题吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8658469/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:45:03  来源:igfitidea点击:

Does changing the process priority in Windows Task Manager cause problems?

windowsprocesswindows-xptaskmanager

提问by B Seven

When changing the priority of a process, there is a warning about system instability.

更改进程的优先级时,会出现系统不稳定的警告。

I am running a Machine Learning algorithm and the Normal priority makes the computer unresponsive. Does changing the priority of this process cause problems or affect the process (besides making it run slower)?

我正在运行机器学习算法,普通优先级使计算机无响应。更改此进程的优先级是否会导致问题或影响进程(除了使其运行更慢)?

回答by Cody Gray

No, it's just a warning. You probably aren't going to cause any problems by turning the priority of a process up or down a notch. And there won't be any irreversible damage; anything you do mess up can be fixed by a restart. Just make sure to save your work first before experimenting!

不,这只是一个警告。通过将进程的优先级调高或调低,您可能不会造成任何问题。并且不会有任何不可逆转的损害;您所做的任何事情都可以通过重新启动来修复。在尝试之前,请务必先保存您的工作!

There are a couple of common things that can go wrong (and thus that you should watch out for):

有一些常见的事情可能会出错(因此您应该注意):

  1. You can crank upthe priority of a non-system processso high that it can cause the system to become unstable and non-responsive because the system processes don't get enough time.

  2. You can crank downthe priority of a system processso low that it doesn't get enough time, causing your system to become unstable and non-responsive. (Although I think they've fixed some of this more recently by preventing you from altering the priority of certain so-called "critical" system processes.)

  1. 您可以杀青一个优先级非系统进程如此之高,它可能会导致系统变得不稳定和不响应,因为系统进程没有得到足够的时间。

  2. 您可以将系统进程的优先级调低到没有足够时间,从而导致系统变得不稳定和无响应。(尽管我认为他们最近通过阻止您更改某些所谓的“关键”系统进程的优先级来修复了其中的一些问题。)

In my experience, assuming a decently fast and stable machine, as long as you stay away from the "Real Time" option, you will be fine. Turning non-system process downin priority level is even less likely to cause harm.

根据我的经验,假设机器速度相当快且稳定,只要您远离“实时”选项,就可以了。降低非系统进程的优先级更不可能造成伤害。

回答by Adrian McCarthy

If the process you're adjusting interacts with another process, you could potentially create a priority inversion, which is one way to get a deadlock (i.e., it could cause the process or the one it's interacting with to hang).

如果您正在调整的进程与另一个进程交互,则可能会创建优先级反转,这是导致死锁的一种方式(即,它可能导致进程或与之交互的进程挂起)。

But if it's just a standalone program that's busy computing, dropping its priority a notch is not likely to cause any problems.

但如果它只是一个忙于计算的独立程序,那么降低其优先级不太可能导致任何问题。

The stability problems mentioned in the warning are an issue only if you change the priority relative to dependent system processes.

警告中提到的稳定性问题只有在您更改相对于相关系统进程的优先级时才会成为问题。