Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Daemon and Service Difference

What is the difference between daemon and service ? (In windows or Linux).

like image 673
vijay Avatar asked Jan 25 '15 17:01

vijay


People also ask

What is difference between daemon and service?

Daemon is a computer program that runs as a background process and generally do not remains under the direct control of user. The parent process of a daemon in most cases are init, but not always. In Linux, a Service is an application that runs in a background carrying out essential task or waiting for its execution.

What is the difference between daemon and process?

Daemons are processes that run unattended. They are constantly in the background and are available at all times. Daemons are usually started when the system starts, and they run until the system stops. A daemon process typically performs system services and is available at all times to more than one task or user.

Why is service called daemon?

The MIT programmers thought demon would be an appropriate name for a background process that worked tirelessly to perform system chores. But instead of using the term demon, they used daemon, which is an older form of the word. An acronym was back fitted once the concept came into common use.

Is daemon a service in Linux?

A daemon is a service process that runs in the background and supervises the system or provides functionality to other processes. Traditionally, daemons are implemented following a scheme originating in SysV Unix.


3 Answers

A daemon is a background, non-interactive program. It is detached from the keyboard and display of any interactive user. The word daemon for denoting a background program is from the Unix culture; it is not universal.

A service is a program which responds to requests from other programs over some inter-process communication mechanism (usually over a network). A service is what a server provides. For example, the NFS port mapping service is provided as a separate portmap service, which is implemented as the portmapd daemon.

A service doesn't have to be a daemon, but usually is. A user application with a GUI could have a service built into it: for instance, a file-sharing application.

For more details: https://askubuntu.com/questions/192058/what-is-technical-difference-between-daemon-service-and-process

like image 98
Anubhav Singh Avatar answered Oct 17 '22 08:10

Anubhav Singh


Daemons are processes running in the background and are not in your face.They do certain tasks at set times or responds to certain events.

In Windows, daemons are called services.

like image 6
answerSeeker Avatar answered Oct 17 '22 10:10

answerSeeker


Daemon

From wikipedia:

A daemon is a computer program that runs as a background process, rather than being under the direct control of an interactive user.

For example you want to ping google.com. That means something in your OS should know how to handle the Domain name resolution. That is a daemon.

More to read : Berkeley Internet Name Daemon (BIND)

Service

That name comes from Client Server Model. It means that an application runs as a service on a server, and a client version of the application is used to access the service. For example an Apache HTTP server application is a service on a server and a Chrome Browser is a client on a PC.

More to read: Client Server Model

like image 3
EFE Avatar answered Oct 17 '22 08:10

EFE