Anonymous

What Is The Difference Between Kernel Mode And User Mode? Why Is The Difference Important To An Operating System?

2

2 Answers

Anonymous Profile
Anonymous answered
Difference between user mode and kernel mode:    User mode is where all the user programmes will execute.  Where as in kernel mode all kernel programmes like like  Network driver programs etc., will be execute      Kernel mode has has full access to every resource. It is the mode in which the Windows kernel runs.  User mode has restricted access to resources.      The Linux kernel was non-preemptive through Version 2.4. That is, while a process is in kernel mode, it cannot be arbitrarily suspended and replaced by another process (i.e., preempted) for the duration of its time slice (i.e., allocated interval of time in the CPU), in contrast to user mode, except when it voluntarily relinquishes control of the CPU. Processes in kernel mode can, however, be interrupted by an interrupt or an exception.      A process running in user mode can't read or write directly to OS memory. A process running in kernel mode can do it directly.    User mode programs are running in application level and Kernel mode programs are running in system level.
Kassimu Kiraji Profile
Kassimu Kiraji answered
Operating System assigns some privileges and restrictions to different types of programs running on it. It classifies all the programs into two categories, User mode and Kernel mode. User mode programs are running in application level and Kernel mode programs are running in system level. This allows the trusted operating system and drivers running in kernel mode to access important /vital tasks, while preventing less trusted user mode processes from reaching those parts and causing conflicts

Answer Question

Anonymous