Connecting Tech Pros Worldwide Help | Site Map

what is difference between Daemon and Background process?

Newbie
 
Join Date: Nov 2006
Posts: 4
#1: Dec 7 '06
Hi All,

I need to know differences between background process and a daemon program.
And also i need to check these differences with some examples?

Can any one help me in this regard.

Thanks,
Aks
DeMan's Avatar
Lives Here
 
Join Date: Nov 2006
Location: Adelaide, SA
Posts: 1,748
#2: Dec 7 '06

re: what is difference between Daemon and Background process?


I'm probably wrong (because this is something I vaguely rememebr being mentioned some time ago .......) I think a Daemon process is a thread that can only be stopped by itself, whereas anything else can be stopped by other means......I'm sure someone knows more and will clarify....
Newbie
 
Join Date: Nov 2006
Posts: 4
#3: Dec 7 '06

re: what is difference between Daemon and Background process?


Hi All,

After reading many write-ups i could understand that daemon is just a concept around background process. But i need some feedback or comments on my understanding.

Daemon is background process, but which is specially designed to handle interactions, logging, signal handling etc.

But background process may or may not be proper daemon as any process can be run in background with out meeting some of the requirements.

I think daemon programming is just concept or protocol for writing good background processes???

Please reply your thoughts.

Thanks
Aks
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,562
#4: Dec 7 '06

re: what is difference between Daemon and Background process?


A daemon is a long running process that you wouldn't normally stop/start. Sometimes they provide kernel services. If you look at Unix, anything ending with a 'd', such as httpd, is a daemon.

A background process is a process independently running of the current process. iow, it may create files on its own without input/output form the main program.
Reply