20080329 - What is a Windows Service and how does its lifecycle differ from a standard EXE
2008-03-30 20:43
567 查看
Windows Service 是一种可随 Windows 操作系统启动而启动的,在后台运行的,通常不和用户产生交互的程序。它无法通过双击来运行,类似于 Unix 守护进程(daemon processes),当用户注销时它也不会停止。
Windows 服务由三部分组成:1.一个服务可执行文件;2.一个服务控制程序(SCP);3.服务控制管理器(SCM),负责在 HKLM\SYSTEM\CurrentControlSet\Services 下创建服务键值。用户可通过 SCP 控制服务的启动、停止、暂停等,SCP 会通过 SCM 调用服务程序。
Window 标准的exe可执行程序通常有一个用户界面,Console或GUI,通常由用户来启动或停止。
Windows 服务由三部分组成:1.一个服务可执行文件;2.一个服务控制程序(SCP);3.服务控制管理器(SCM),负责在 HKLM\SYSTEM\CurrentControlSet\Services 下创建服务键值。用户可通过 SCP 控制服务的启动、停止、暂停等,SCP 会通过 SCM 调用服务程序。
Window 标准的exe可执行程序通常有一个用户界面,Console或GUI,通常由用户来启动或停止。
相关文章推荐
- What is pseudopolynomial time? How does it differ from polynomial time?
- What is a GPU and how does it work?
- [POST] What Is the Linux fstab File, and How Does It Work?
- Android 4.2 Feature Highlight: So, What Is This Miracast Thing And How Does It Work, Anyway?
- What Silverlight is and how it differs from WPF
- Windows,Introduction to COM - What It Is and How to Use It.
- What is SolrCloud? (And how does it compare to master-slave?)
- What is a Windows USB device path and how is it formatted?
- What is xylitol and how does it help to prevent cavities?
- Windows 7: What is Account Auditing And How To Enable It
- What is SolrCloud? (And how does it compare to master-slave?)
- What is SMS and how does it work?
- 802.11 WDS how does it work, when to use it and what are the limitations
- What is Index and how it works in SQL Server?
- Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it
- (Page 3 of 3 )A walking tour of JavaBeans What JavaBeans is, how it works, and why you want to use it
- What Is SFP Cable And How Is It Used?
- What is JNI Graphics and how to use it?
- What is reflection and how to use it in CSharp ?
- Introduction to COM - What It Is and How to Use It.(ZT)