Operating System - HP-UX
1830676 Members
2690 Online
110015 Solutions
New Discussion

daemons & Process in HPUX

 
SOLVED
Go to solution
sivakumar_11
Advisor

daemons & Process in HPUX

Hello,

Could any one define the difference between HP Daenons & HP Process with example

tar
siva
3 REPLIES 3
Ravi_8
Honored Contributor
Solution

Re: daemons & Process in HPUX

Hi

Daemon--> are also processes, started at boot time (eg, init, cron,lp etc)

process--> Each program (comand)creates a process, and will end as soon as job is completed ( eg. find, application process like oracle listener, dbwr etc)
never give up
Hoang Minh Tuan
Regular Advisor

Re: daemons & Process in HPUX

Hi,

Process is a program of an application. It usually run for a specific of time, and it have 5 states:
run: the process is running or runable.
sleep: the process is waiting for an event in memory or on swap device.
idle: the process is being setup via fork and exec
zombi: the process has released all system resources except for the process table entry.
stop: the process has been stopped by job control
Example: run a script file or issue a command

Daemon is also a process but it always run in background mode, and always in running state. Maybe it 's a realtime process. The purpose of a daemon is monitoring, schedule task or a service for the use of other processes. (Example: cront job, sard (system activity report), telnetd, rlogind, ...)

HMT

Bus wait at bus station, Work wait at my work station
Gordon  Morrison
Trusted Contributor

Re: daemons & Process in HPUX

A daemon is a process that sits in the background waiting for something to happen.
For instance, inetd just waits for a connection attempt. Let's say you make a telnet connection: inetd detects the connection attempt, and determines that it's a telnet connection, so it starts a telnet daemon (telnetd) then inetd goes back to just waiting for something else to happen. Meanwhile the telnetd daemon/process waits for you to type something. When you do, it passes what you type to the operating system, then passes things back when necessary.
What does this button do?