Windows是否会自动关闭占用较高CPU利用率的进程? [英] Does Windows automatically close a process which takes a higher CPU utilisation?

查看:579
本文介绍了Windows是否会自动关闭占用较高CPU利用率的进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个作为后台进程运行的应用程序。此应用程序关闭的理想方式是PC关闭或注销。或者用户直接从任务管理器结束进程。

We have an application which runs as a background process. The ideal way in which this application closes is on PC shutdown or log off. OR the user ends the process directly from the task manager.

我们注意到几天前,应用程序已停止。我检查了事件查看器日志,最近一次重启是一周后,因此PC没有重新启动。我检查了用户是否从任务管理器关闭了应用程序。他回答了
的负数。我不知道如何验证他的说法。有没有办法从任务管理器中获取应用程序的详细信息?任何有关此问题的帮助也表示赞赏。

We noticed that couple of days back, the application had stopped. I checked the event viewer logs and the latest restart was a week back, so the PC had not restarted. I checked with the user if he closed the application from task manager. He replied in the negative. I don't know how to validate his claim. Is there any way to get the details of applications closed from task manager? Any help on this is also appreciated.

另一种可能性是应用程序崩溃。如何检查应用程序是否已崩溃?有没有我可以检查的Windows日志?

The other possibility is an application crash. How to check if the application had crashed? Are there any windows logs that I can check?

当CPU利用率更高时,Windows会自动终止任何进程吗?

Does Windows automatically terminate any process when it makes higher CPU utilisation?




推荐答案


我们有一个作为后台进程运行的应用程序。此应用程序关闭的理想方式是PC关闭或注销。或者用户直接从任务管理器结束进程。

We have an application which runs as a background process. The ideal way in which this application closes is on PC shutdown or log off. OR the user ends the process directly from the task manager.

我们注意到几天前,应用程序已停止。我检查了事件查看器日志,最近一次重启是一周后,因此PC没有重新启动。我检查了用户是否从任务管理器关闭了应用程序。他回答了
的负数。我不知道如何验证他的说法。有没有办法从任务管理器中获取应用程序的详细信息?


We noticed that couple of days back, the application had stopped. I checked the event viewer logs and the latest restart was a week back, so the PC had not restarted. I checked with the user if he closed the application from task manager. He replied in the negative. I don't know how to validate his claim. Is there any way to get the details of applications closed from task manager?

Windows不执行任何类型的日志记录,表明用户通过任务管理器关闭了应用程序。

Windows does not perform any type of logging indicating that applications were closed by users through task manager.

另一种可能是应用程序崩溃。如何检查应用程序是否已崩溃?我可以查看是否有任何Windows日志?

The other possibility is an application crash. How to check if the application had crashed? Are there any windows logs that I can check?

应用程序事件日志中会有一个条目对于异常的程序终止。

There would be an entry in the Application event log for an abnormal program termination.

当Windows利用率更高时,Windows会自动终止任何进程吗?

Does Windows automatically terminate any process when it makes higher CPU utilisation?

否。

No.


我们有一个作为后台进程运行的应用程序。此应用程序关闭的理想方式是PC关闭或注销。或者用户直接从任务管理器结束该过程。

We have an application which runs as a background process. The ideal way in which this application closes is on PC shutdown or log off. OR the user ends the process directly from the task manager.

应编写应用程序以检测系统关闭并正常退出。 任务管理器终止应用程序可能不会导致应用程序的干净关闭。 任务管理器可能使用TerminateProcess
,这不是结束处理的理想方式。 

The application should be written to detect system shutdown and exit gracefully.  Termination of an application by the task manager may not result in a clean shutdown of your application.  It is possible that task manager may use TerminateProcess which is not an ideal way to end processing. 

对于没有用户界面的长时间运行的进程,您应该考虑使用Windows服务。 这将允许 自动重启,还可以更好地控制用户停止服务流程的能力。

For long running processes without a user interface you should consider using a Windows Service.  This will allow for  automatic restart and also provide for greater control over users' ability to stop the service process.


这篇关于Windows是否会自动关闭占用较高CPU利用率的进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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