distinguish between user mode and kernel mode?

Answer Posted / rhino

Kernel Mode (System Mode) :

in this mode executing code has complete and unrestricted
access to the underlying hardware. It can execute any CPU
instruction and reference any memory address.

Kernel mode is generally reserved for the lowest-level,
most trusted functions of the operating system. Crashes in
kernel
mode are catastrophic; they will halt the entire PC.

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.

Thus, all user mode software must request use of the kernel
by means of a system call in order to perform privileged
instructions, such as process creation or input/output
operations.


User Mode :

In User mode, the executing code has no ability to directly
access hardware or reference memory. Code running in user
mode must delegate to system APIs to access hardware or
memory.

Due to the protection afforded by this sort of isolation,
crashes in user mode are always recoverable. Most of the
code
running on your computer will execute in user mode.

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the nmap command?

579


How to use grep command to list find the records of a file containing 10 different strings?

643


What is the behavioural difference between cmp and diff commands?

670


Is ‘du’ a command? If so, what is its use?

630


What is in grep command?

643






Which command can you use to find the currently running process in unix server?

583


why metadb requires a seperate slice to create Solaris volume manager

2551


What does pipe () return?

590


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

584


Differentiate cmp command from diff command.

584


How do I search for a file in unix command?

542


Which command will print your home directory on screen?

540


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

636


What is unix command line?

602


What does awk stand for?

602