ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Linux  >>  Linux Commands
 
 


 

 
 Linux Commands interview questions  Linux Commands Interview Questions
 Linux Threads interview questions  Linux Threads Interview Questions
 Linux IPC interview questions  Linux IPC Interview Questions
 Linux Socket Programming interview questions  Linux Socket Programming Interview Questions
 Linux System Calls interview questions  Linux System Calls Interview Questions
 Linux AllOther interview questions  Linux AllOther Interview Questions
Question
what is user mode & kernel mode?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is user mode & kernel mode?
Answer
# 1
KERNEL-MODE

The kernel-mode programs run in the background, making sure
everything runs smoothly - things like printer drivers,
display drivers, drivers that interface with the monitor,
keyboard, mouse, etc. These programs all run in such a way
that you don't notice them.

When the computer boots up, Windows calls the KERNEL, the
main kernel-mode program that allows all the other programs
to run, even the user-mode programs.

USER-MODE

These are the programs that you run when you want specific
programs - e.g., MS Paint, MS Word, and Calculator. These
are heavily restricted, as to not crash the system. Windows
uses memory-protection services offered by the processor to
prevent malicious programs from interfering with the rest of
the system and corrupting it.
 
Is This Answer Correct ?    2 Yes 0 No
Sherin Sha
 
  Re: what is user mode & kernel mode?
Answer
# 2
A process can run in two modes:
    1.User Mode.     
    2.Kernel Mode.
1.User Mode:
  =>A mode of the CPU when running a program.
  =>In this mode ,the user process has no access to the
memory locations used by the kernel.When a program is
running in User Mode, it cannot directly access the kernel
data structures or the kernel programs.

2.Kernal Mode:
  =>A mode of the CPU when running a program.
  =>In this mode, it is the kernel that is running on behalf
of the user process and directly access the kernel data
structures or the kernel programs.Once the system call
returns,the CPU switches back to user mode.

    
When you execute a C program,the CPU runs in user mode till
the system call is invoked.In this mode,the user process has
access to a limited section of the computer's memory and can
execute a restricted set of machine
instructions.however,when the process invokes a system
call,the CPU switches from user mode to a                  
more privileged mode ­the kernel.  In this mode ,it is the
kernel that runs on behalf of the user process,but it has
access to any memory location and can execute any machine
instruction.  After the system call has returned,the CPU
switches back to user mode.
 
Is This Answer Correct ?    2 Yes 0 No
Mohan L
 
 
 
  Re: what is user mode & kernel mode?
Answer
# 3
KERNEL-MODE

Kernel mode, also referred to as system mode, is one of the
two distinct modes of operation of the CPU in Linux. When
the CPU is in kernel mode, it is assumed to be executing
trusted software, and thus it can execute any instructions
and reference any memory addresses (i.e., locations in
memory). The kernel (which is the core of the operating
system and has complete control over everything that occurs
in the system) is trusted software, but all other programs
are considered untrusted software.

USER-MODE

User mode is the normal mode of operating for programs, web
browsers etc. 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.
 
Is This Answer Correct ?    2 Yes 0 No
Ajit Mohan B
 

 
 
 
Other Linux Commands Interview Questions
 
  Question Asked @ Answers
 
in LINUX,What are two subtle differences in using the more and the pg commands?  1
1.I want to change runlevel but the Users shall not be disturbed?how? 2.Disk have 5gb disk utilization even though files unable to create, why? 3.what are the internal and external command in linux? 4.sar command o/p? 5.how list the open files? 6.what is kernel compiling? 7.How do u See complete configuration in ur system? 8.how will u make a daily updates with cron daily? 9.which port is associated with ttys0? 10.specific some problems linux admin(if u are linux admin)faced and how did u overcome it? IBM4
Display the Disk Usage of file sizes under each directory in currentDirectory ?  4
Which priority has the process?how do u view? Yahoo2
find out what file systems supported by kernel?  3
How would you find whether a remote server is up or not? HP3
how do u extract files from iso cd images in linux? Wipro3
What does the following command line produce? Explain each aspect of this line. $ (date ; ps -ef | awk {print $1}' | sort | uniq | wc -l ) >> Activity.log Cisco2
I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireless and with wire NIC cards, it is possible to assign reserve ip address for both NIC card, but same host name? AOL1
how do you port scaning with netcat command? Wipro1
what is initrd image? Oracle4
What is the most graceful way to get to run level single user mode? Cisco2
have you ever got warning message from unix admin that file system running out of space or not enough disk space?what will u do? HP3
how do you configure linux system as a router? HP2
Any one example of uninteruptable sleeping process? Satyam1
tell me command for" to create more than one name to a file". Google2
how do u find remote machine operating system and version? Wipro5
what is "ls* " is run options are 1) x 2).x 3) hidden 4) no disply tell exact answer. Google3
script is like x=10; y=20; [$x-ne$y]; echo $ please give me output. Google2
how is the possible the "last 10 files present in the current directory and stores them in the file list". Google6
 
For more Linux Commands Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com