What are the behavioral differences between a daemon and a normal process?

后端 未结 3 1009
天涯浪人
天涯浪人 2021-02-01 06:39

I know that daemons run in the background mostly i.e. they require very less interaction from the user.

Wikipedia lists some of the types of daemons that commonly exist:

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 07:04

    Not really. A daemon is just a term for a process that runs continuously and usually is not attached to a terminal.

    Daemons are not a separate class of processes and they have no special privileges or attributes.

    There is a BSD/Linux C function called daemon (man page), but this is just really a simple way to detach your process from its terminal. It is so named because that's what daemons usually do, not the other way around.

提交回复
热议问题