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 are the unix commands?

742


How do I delete files from command prompt?

788


Explain mount and unmount command.

828


What is the command to compare two files in unix?

809


What is the use of egrep command in unix?

808


What is the comma to show the space allocation of files?

747


What is grep r?

782


Name the unix command to find how many days the server has been up.

850


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1188


How does the system know where one command ends and another begins?

1849


Are you in or at the office?

826


Can you explain a little bit about command substitution?

805


What is the use of finger command?

810


Give the command for finding the current date.

753


What command is used to check the current users?

777