Windows 服务和 Windows 进程有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20192531/
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
What the difference between a Windows service and a Windows process?
提问by M.Rezaei
What is the differencebetween a Windows serviceand a Windows process?
有什么区别一个Windows之间的服务和一个Windows程序?
回答by Hans Passant
A service is a true-blooded Windows process, no difference there. The only thing that's special about a service is that it is started by the operating system and runs in a separate session. An isolated one that keeps it from interfering with the desktop session. Traditionally named a daemon.
服务是真正的 Windows 进程,没有区别。服务的唯一特别之处在于它由操作系统启动并在单独的会话中运行。一个隔离的,防止它干扰桌面会话。传统上称为守护进程。
回答by Karthick S
A service is a process withoutuser interface. You can call service as a subset of process.
服务是一个没有用户界面的进程。您可以将服务作为流程的一个子集来调用。