210-250 · Question #5
Which definition of a daemon on Linux is true?
The correct answer is C. program that runs unobtrusively in the background. A daemon is a background process on Linux that runs without direct user interaction, typically started at boot time to provide system or network services.
Question
Which definition of a daemon on Linux is true?
Options
- Aerror check right after the call to fork a process
- Bnew process created by duplicating the calling process
- Cprogram that runs unobtrusively in the background
- Dset of basic CPU instructions
How the community answered
(32 responses)- A3% (1)
- B3% (1)
- C88% (28)
- D6% (2)
Why each option
A daemon is a background process on Linux that runs without direct user interaction, typically started at boot time to provide system or network services.
Error checking after fork() is a programming practice in process creation, not a definition of a daemon.
A new process created by duplicating the calling process describes the result of a fork() system call, not a daemon.
A daemon is a long-running process that operates in the background, detached from any controlling terminal, and performs tasks such as handling network requests or system events. Daemons are typically started during system initialization and continue running until the system shuts down. Common examples include sshd, httpd, and cron.
A set of basic CPU instructions describes machine code or an instruction set architecture, which is unrelated to daemons.
Concept tested: Linux daemon process definition and characteristics
Source: https://man7.org/linux/man-pages/man7/daemon.7.html
Topics
Community Discussion
No community discussion yet for this question.