什么是daemon:
http://www.cnblogs.com/itech/archive/2011/08/22/2149684.html 这篇文章大致给出了linux下的某些服务
http://blog.csdn.net/u010872995/article/details/46300499 这个给出了一个python简单的守护进程实现的实例
http://blog.csdn.net/cupidove/article/details/9310413 这里给出了一个C的实现过程和相关解释
《unix环境高级编程》这本书中对守护进程和相关知识有详细的描述
python的多进程和多线程实现:threading.Thread.daemon 与 multiprocessing.Process.daemon, threading.Thread.setDaemon()许多文章将其描述为设置某个线程为守护线程,但是我们在查阅python手册的multiprocessing.Process.daemon解释时可以明显看到这句话:
daemon
The process’s daemon flag, a Boolean value. This must be set before start() is called.
The initial value is inherited from the creating process.
When a process exits, it attempts to terminate all of its daemonic child processes.
Note that a daemonic process is not allowed to create child processes. Otherwise a daemonic process would leave its children orphaned if it gets terminated when its parent process exits. Additionally, these are not Unix daemons or services, they are normal processes that will be terminated (and not joined) if non-daemonic processes have exited.
大概我们就可以猜想,此daemon并不是我们linux中的守护进程