Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is user mode & kernel mode?

Answer Posted / mohan l

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 ?    74 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is env command in linux?

1043


How do I find the process id in linux?

1031


What is p command?

1096


How use linux command line?

1090


What is kill command?

1023


If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?

1005


How do I check my cpu cores?

1006


What are the basic commands for user management?

1025


The ‘logout’ built in command is used to

1266


What is FC command?

868


How do you create a text file in linux terminal?

1017


How do I change directories in linux command line?

950


Brief about FTP hostname?

1091


What does free command do in linux?

1109


What is dos and its commands?

1085