曲径通幽论坛

标题: Daemon Process [打印本页]

作者: beyes    时间: 2008-12-1 00:26
标题: Daemon Process
A daemon process is a program that is run in the background, providing some system service. (后台提供服务的程序)

  像 /etc/rc.d/rc5.d 中的 d , web 服务里的 httpd 中的 d ,都是 daemon 的意思。

 Daemon 主要分为两种类型:

 1、Standalone (单独的)
 2、Transient (瞬变的) -- controlled by the "super-daemon" xinetd

 两种类型的区别:

 

在上图中,当使用者发出服务请求时,standalone 服务会响应请求,然后对使用者进行服务。



在上图中,Transient 情况下,当使用者当有服务需求时,首先会给 Xinetd 发出请求,Xinetd 收到请求后,会调用 Transient 来响应使用者的服务需求。

Standalone 和 Transient 最大的不同是响应服务的过程中多了一道 Xinetd 环节。




欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2