ZhangZe

Computer World--Linux, BSD

博客园 首页 新随笔 联系 管理

文章分类 -  C / C++

摘要:In part 2 of our series we learn how to design and code network daemons to serve our clients well.  Daemon processes are servers which run in the background servicing various clients. You should be aw... 阅读全文
posted @ 2010-11-13 22:29 ze_zhang

摘要:Introduction  Unix processes works either in foreground or background. A process running in foreground interacts with the user in front of the terminal (makes I/O), whereas a background process runs b... 阅读全文
posted @ 2010-11-13 15:30 ze_zhang

摘要:守护进程(Daemon)是运行在后台的一种特殊进程。它独立于控制终端并且周期性地执行某种任务,或等待处理某些发生的事件。守护进程是一种很有用的进程。Linux的大多数服务器就是用守护进程实现的。比如,Internet服务器inetd,Web服务器httpd等。同时,守护进程完成许多系统任务。比如,作业规划进程crond,打印进程lpd等。  守护进程的编程本身并不复杂,复杂的是各种版本的Unix的... 阅读全文
posted @ 2010-11-08 18:00 ze_zhang