Daemon (computer Software) Article Index for
Daemon
Website Links For
Daemon
 

Information About

Daemon (computer Software)




In Unix and other computer Multitasking Operating System s, a daemon is a Computer Program that runs in the Background , rather than under the direct control of a user; they are usually instantiated as Process es. Typically daemons have names that end with the letter "d"; for example, syslogd is the daemon which handles the system log.

Systems often start (or "launch") daemons at on some Linux systems), run scheduled tasks (like Cron ), and perform a variety of other tasks.


TERMINOLOGY

The programmers of CTSS coined the term by analogy to Maxwell's Demon , and all the systems descended from it, including Unix , have inherited the terminology. Daemons are characters in Greek mythology, some of whom handled tasks that the GODs couldn't be bothered with, much like computer daemons often handle tasks in the background that the user can't be bothered with. BSD and some of its derivatives have adopted a daemon as Its Mascot , although this mascot is actually a Cute Stereotypical depiction of a Christian Demon . (The alternative expansion of "daemon" as "disk '''a'''nd '''e'''xecution '''mon'''itor" is also sometimes used, but it appears to be a Backronym .)


TYPES OF DAEMONS

In a strictly technical sense, Unix recognises as a daemon any process that has process number 1 ( Init ) as its parent process. The init process adopts any process whose parent dies without waiting for the child's status, so the common method for launching a daemon involves forking once or twice, and making the parent (and possibly the grandparent) die while the child (or grandchild) process begins performing its normal function. The Idiom is sometimes summarized with the phrase "fork off and die".

In common Unix usage a daemon may be any background process, whether a child of init or not. UNIX users sometimes spell daemon as ''demon'', and most usually pronounce the word that way.

In the DOS environment, such programs were written as Terminate And Stay Resident (TSR) software. On Microsoft Windows systems, programs called "services" perform the functions of daemons, though the term "daemon" has started to creep into common usage on that platform as well. On the original Mac OS similar systems were known as Extensions . Mac OS X , being a Unix-like system, has daemons. There are " Services " as well, but these are completely different in concept.


SEE ALSO



EXTERNAL LINKS