开发者

How to create a process that cannot be killed?

开发者 https://www.devze.com 2022-12-29 03:32 出处:网络
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?

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 开发者_如何学Pythonlist 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.


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.


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).


As the user will use the virtual machine to run your program, he can always kill the JVM :)

0

精彩评论

暂无评论...
验证码 换一张
取 消