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
What command would you use to create an empty file without opening it to edit it?
What is the difference between command ‘ping’ and ‘ping6’?
What is netstat command in linux?
What is echo command in batch file?
You are required to restore the file memo.ben. It was backed up in the tar file MyBackup.tar. Which command would you use to do it?
What does touch do in linux?
What is finger in networking?
What is umask 000?
please advice me what i have to prepare for NIC Exam(22-feb- 09). send me the question pattern for the 2 hrs exam. please sent it to manivannan_it15@yahoo.co.in
What is ls command and what it does?
How do I navigate in cmd?
What is tail command in linux?
How do I find my user id in linux?
How many interfaces(ethernet cards) are working using single command?
What does && mean in bash?