如何创建一个不能被杀死的进程?
我正在运行我的java应用程序。它显示在任务管理器的进程选项卡中。我不希望用户杀死该进程?
如果可能的话,我不希望我的进程也出现在进程列表中。
我的应用程序是 LAN 管理员。我需要登录客户端计算机。如果用户有可能终止我的进程,那么创建这样的应用程序就没用了。
I am running my java application. It shows up in the process tab of the task manager. I dont want users to kill that process?
And if possible i dont want my process to be in the process list also.
My application is a LAN administrator. I need to log client machines. If its possible for the user to kill my process there is no use in creating such an application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
IMO,创建不能被杀死的进程就否定了用户控制他/她的机器的权利。我想不出这样做有任何道德理由......无论它在技术上是否可行,以及您是否可能有一些“商业”理由这样做。
IMO, creating process that cannot be killed is negating the user's right to control his / her machine. I cannot think of any moral justification for doing this ... whether or not it is technically possible, and whether or not you may have some "business" reason for doing it.
当前用户拥有的进程总是可以被终止。
编辑:除非该进程与系统相关(然后应该以不同的用户身份运行,就像在Linux中一样),否则有一个意识形态概念,即用户应该始终有权知道正在发生的事情并能够控制用户正在运行的进程(毕竟,这是她的用户帐户)。
A process owned by the current user can always be killed.
Edit: unless the process is system-related (which should then be run as a different user, like in Linux), there is an ideological concept in which the user should always have the right to know what's going on and be able to take control over the user's running processes (after all, it is her user account).
由于用户将使用虚拟机来运行你的程序,他总是可以杀死 JVM :)
As the user will use the virtual machine to run your program, he can always kill the JVM :)