LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2005, 04:32 AM   #1
arunachalam
Member
 
Registered: Sep 2005
Posts: 53

Rep: Reputation: 15
Daemon


Hi all,
Can u say me any example & how a user space daemon is distinguished from kernel space daemon.
 
Old 09-08-2005, 07:22 AM   #2
pats
Member
 
Registered: Jul 2005
Distribution: Debian Sarge/Etch, (K)Ubuntu, FC6, AIX5.3, VMWare ESXServer
Posts: 159

Rep: Reputation: 30
might be misunderstanding the term 'user space' and 'kernel space' but i think its refering to where the program/deamon resides in memory.

this is often refered to as user mode and kernel mode.

basically pretty much everything that you're going to launch yourself is gonna be user mode.

things that run in kernel mode will have direct access to your hardware and can do lots of naughty stuff if they were programmed to. when programming in assembly and you wanna write something in kernel mode ie some hardware IO operation then you need to preceed the instruction with an instruction saying hey i know what i'm doing let me get on with it.

anything that you want to run on your computer that requires a port to listen to or anything that changes the configuration of the kernel must be run in kernel mode. this doesn't mean that anything that then uses this newly opened port or whatever has to run in kernel mode.

basically the kernel acts as a go between for the user and the hardware so the user doesn't do anything silly that might break or crash the computer.


initd and crond and other such deamons run in kernel mode and are either started automatically at startup or have to be started by root.

x windows doesn't run in kernel mode. it has not real power over the operating system. theres nothing you can do in a window manager that you can't from the command line. its just an application to make your life easier.

(side point but MS windows runs its 'window manager' in kernel mode becuse the actual OS kernel is so intertwined with the 'window manager'. now whether your from a programming background or not its got to sound stupid that you link your steering wheel up to your engine.... i like that analogy.. might put that in my signiture.. anyway you don't want your car user to have the ability to tweak the engine using the steering wheel do you?)

hope this helped

not 100% on everything above and somones probably gonna slate me for being wrong but i think its a fair description if not a little convoluted
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
daemon or not? ZX_SA Linux - General 2 08-08-2005 02:13 AM
rsync daemon hverne Red Hat 6 06-04-2005 09:37 PM
rsync daemon hverne Fedora 1 05-27-2005 08:58 AM
daemon nobu Slackware 1 01-09-2003 09:02 AM
What is a daemon? nutshell Linux - General 3 02-26-2002 07:25 AM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration