| | |
Operating system. kernel mode/user mode
![]() |
•
•
Join Date: Aug 2007
Posts: 63
Reputation:
Solved Threads: 0
im new to OS.
i want somebody to please give me the differences between the kernel mode and the user mode.
are these block in memory ?
i did some research on the internet and all i understood was that kernel mode is protected from the user and it is where the operating system is and the user mode is not protected.
but can anybody give some examples to clarify this. and can you please explain what does it mean to say that to update linux you can simply download the kernel ! ( is the kernel a software
)
thank you so much in advance
i want somebody to please give me the differences between the kernel mode and the user mode.
are these block in memory ?
i did some research on the internet and all i understood was that kernel mode is protected from the user and it is where the operating system is and the user mode is not protected.
but can anybody give some examples to clarify this. and can you please explain what does it mean to say that to update linux you can simply download the kernel ! ( is the kernel a software
)thank you so much in advance
A kernel is the main program or component of an operating system, it's the thing that does all the work, without it you have no operating system. Linux is actually nothing more than a kernel; the programs that make up the rest of the operating system are generally GNU software, so the entire operating system is usually referred to as GNU/Linux.
User mode is the normal mode of operating for programs. Web browsers, calculators, etc. will all be in user mode. They don't interact directly with the kernel, instead, they just give instructions on what needs to be done, and the kernel takes care of the rest. Kernel mode, on the other hand, is where programs communicate directly with the kernel. A good example of this would be device drivers. A device driver must tell the kernel exactly how to interact with a piece of hardware, so it must be run in kernel mode. Because of this close interaction with the kernel, the kernel is also a lot more vulnerable to programs running in this mode, so it becomes highly crucial that drivers are properly debugged before being released to the public.
Finally, yes, updating Linux simply involves installing a new kernel because, as I said earlier, that's all 'Linux' really is. If you want to update the GNU programs that make up the rest of the operating system, you're going to have to use the tools that your Linux distribution provider supplied with the operating system.
User mode is the normal mode of operating for programs. Web browsers, calculators, etc. will all be in user mode. They don't interact directly with the kernel, instead, they just give instructions on what needs to be done, and the kernel takes care of the rest. Kernel mode, on the other hand, is where programs communicate directly with the kernel. A good example of this would be device drivers. A device driver must tell the kernel exactly how to interact with a piece of hardware, so it must be run in kernel mode. Because of this close interaction with the kernel, the kernel is also a lot more vulnerable to programs running in this mode, so it becomes highly crucial that drivers are properly debugged before being released to the public.
Finally, yes, updating Linux simply involves installing a new kernel because, as I said earlier, that's all 'Linux' really is. If you want to update the GNU programs that make up the rest of the operating system, you're going to have to use the tools that your Linux distribution provider supplied with the operating system.
"Technological progress is like an axe in the hands of a pathological criminal."
•
•
Join Date: Aug 2007
Posts: 63
Reputation:
Solved Threads: 0
Dear John , first i wanna thank you for your reply, now here are my questions :
A kernel is the main program or component of an operating system,(so you're sayin that the operating system is
made of many software/programs put together and the kernel is the main program)?
i read that any os has 2 main functionalities: extended machine(abstraction) and resources management.
"it's the thing that does all the work" (by work you mean : its responsible for the 2 functionalities i mentioned
earlier?)
what are the "GNU software"? ( i googled and found that these are free software but i didnt understand much).
"User mode is the normal mode of operating for programs.web browsers ".. (is "use mode" a place in memory ?
since the web browsers and calculators are in the user mode,it means they are installed in the portion of memory
that is specified to the user mode ?)
if i download any software from the internet, lets say "sticky notes software" , will it get installed in the "user mode?"
if i buy a printer and i put the driver cd in my laptop, will it get installed in the "kernel mode"?
so can we say that hard disk is partitioned into addresses for user mode and ones for kernel mode?
Sorry if im askin too much, but i bought i book and im learning about os and im totally new to this topic
A kernel is the main program or component of an operating system,(so you're sayin that the operating system is
made of many software/programs put together and the kernel is the main program)?
i read that any os has 2 main functionalities: extended machine(abstraction) and resources management.
"it's the thing that does all the work" (by work you mean : its responsible for the 2 functionalities i mentioned
earlier?)
what are the "GNU software"? ( i googled and found that these are free software but i didnt understand much).
"User mode is the normal mode of operating for programs.web browsers ".. (is "use mode" a place in memory ?
since the web browsers and calculators are in the user mode,it means they are installed in the portion of memory
that is specified to the user mode ?)
if i download any software from the internet, lets say "sticky notes software" , will it get installed in the "user mode?"
if i buy a printer and i put the driver cd in my laptop, will it get installed in the "kernel mode"?
so can we say that hard disk is partitioned into addresses for user mode and ones for kernel mode?
Sorry if im askin too much, but i bought i book and im learning about os and im totally new to this topic
•
•
•
•
A kernel is the main program or component of an operating system,(so you're sayin that the operating system is
made of many software/programs put together and the kernel is the main program)?
•
•
•
•
i read that any os has 2 main functionalities: extended machine(abstraction) and resources management.
"it's the thing that does all the work" (by work you mean : its responsible for the 2 functionalities i mentioned
earlier?)
•
•
•
•
what are the "GNU software"? ( i googled and found that these are free software but i didnt understand much).
•
•
•
•
"User mode is the normal mode of operating for programs.web browsers ".. (is "use mode" a place in memory ?
since the web browsers and calculators are in the user mode,it means they are installed in the portion of memory
that is specified to the user mode ?)
•
•
•
•
if i download any software from the internet, lets say "sticky notes software" , will it get installed in the "user mode?"
if i buy a printer and i put the driver cd in my laptop, will it get installed in the "kernel mode"?
•
•
•
•
so can we say that hard disk is partitioned into addresses for user mode and ones for kernel mode?
"Technological progress is like an axe in the hands of a pathological criminal."
I've never really done any kernel module programming, but I'll show you an example. Here's a typical 'hello world' program written to run in user mode. All it does is print out 'hello world' and then exit.
By contrast, here's a similar program running in kernel mode that prints out "Hello, world" and "Goodbye, world" to the kernel log. The code is taken from The Linux Kernel Module Programming Guide.
c Syntax (Toggle Plain Text)
#include <stdio.h> int main() { printf("Hello, world!\n"); return 0; }
By contrast, here's a similar program running in kernel mode that prints out "Hello, world" and "Goodbye, world" to the kernel log. The code is taken from The Linux Kernel Module Programming Guide.
c Syntax (Toggle Plain Text)
/* * hello-1.c - The simplest kernel module. */ #include <linux/module.h> /* Needed by all modules */ #include <linux/kernel.h> /* Needed for KERN_INFO */ int init_module(void) { printk(KERN_INFO "Hello world 1.\n"); /* * A non 0 return means init_module failed; module can't be loaded. */ return 0; } void cleanup_module(void) { printk(KERN_INFO "Goodbye world 1.\n"); }
"Technological progress is like an axe in the hands of a pathological criminal."
•
•
Join Date: Aug 2007
Posts: 63
Reputation:
Solved Threads: 0
well im gettin the hang of it now....you made things much clearer 
would you mind if i keep in contact with you ?
here's my email address <email snipped> send me a msg to my hotmail if you dont mind us being in contact.
thank you for everything

would you mind if i keep in contact with you ?
here's my email address <email snipped> send me a msg to my hotmail if you dont mind us being in contact.
thank you for everything
Last edited by John A; Feb 23rd, 2008 at 7:20 pm. Reason: email snipped
•
•
Join Date: Aug 2007
Posts: 63
Reputation:
Solved Threads: 0
Hello john 
tis me again
hope you're doing fine.
well, i have a couple of questions:
1- you told me that linux is the kernel itself, well about windows ? is the windows xp , for instance, considered as the kernel
2- i read this and i didnt really understand what it means , i hope you could help in explaining it to me:
" the distinction betwee user and kernel mode is sometimes blurred in embedded systens (which may not have kernel mode) or interpreted systems ( such as java-based operating systems that use interpretation, not hardware to seperate the components".

tis me again
hope you're doing fine.well, i have a couple of questions:
1- you told me that linux is the kernel itself, well about windows ? is the windows xp , for instance, considered as the kernel
2- i read this and i didnt really understand what it means , i hope you could help in explaining it to me:
" the distinction betwee user and kernel mode is sometimes blurred in embedded systens (which may not have kernel mode) or interpreted systems ( such as java-based operating systems that use interpretation, not hardware to seperate the components".
![]() |
Similar Threads
- Simple Operating System in C# (C#)
- Write Your First Application in Win32 Using Assembly (Assembly)
- Overview of UNIX (Getting Started and Choosing a Distro)
- Zone Alarm Security Alerts. (Viruses, Spyware and other Nasties)
- NEW Hijackthis log and worries (Viruses, Spyware and other Nasties)
- How can I delete Hosts: 1159680172 auto.search.msn.com? (Viruses, Spyware and other Nasties)
- Ideas for a new XT compatible OS... (IT Professionals' Lounge)
- RE: Leaked Windows Source Code (IT Professionals' Lounge)
- interpretation of ad-aware scan (Viruses, Spyware and other Nasties)
Other Threads in the Kernels and Modules Forum
- Previous Thread: need help to start kernel module programming
- Next Thread: kernal module
| Thread Tools | Search this Thread |







