Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Linux by (18.4k points)
What are some differences between the User Mode and Kernel Mode, why and how do you activate them and what are their use cases?

1 Answer

0 votes
by (36.8k points)

Kernel mode

In this Kernel mode, running the code has total and unrestricted access to each underlying hardware and can execute any CPU instruction and reference any memory address. Kernel mode is usually reserved for the lowest-level, most advanced functions of the operating system. Crashing the kernel-mode is catastrophic; they will halt the entire PC.

User Mode

In User Mode, the run the code cannot directly access hardware or reference memory. Code that runs in the user mode should delegate to the system APIs to access the hardware or memory. Due to which protection afforded by a isolation, crashes in your user mode are always recoverable. Almost all the code running on the computer will be executed in user mode.

Want to be a Linux expert? Come and join this Linux course

Do check out the video below

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 20, 2020 in Linux by blackindya (18.4k points)

Browse Categories

...