摘要
守护进程独立于控制终端并且周期性的执行某种任务或等待处理某些发生的事件。在Linux系统中,大多数服务器都是用守护进程实现的。现介绍了守护进程的编写步骤,并给出了避免守护进程本身的多个副本相互干扰的加锁方法。
Daemon process is independent to control terminals and performs some tasks periodically or waits for processing certain events. The majority server realizes daemon process under Linttx. This paper gives a method of programming daemon for Linux and offers a locking methods avoiding mutual disturbance of multiple copies of daemon itself.
出处
《信息技术》
2008年第6期88-89,93,共3页
Information Technology
关键词
服务
加锁
进程
互斥
service
lock
process
mutex