Professional Documents
Culture Documents
hardware. It basically manages operations of memory and CPU time. It is core component of an
operating system. Kernel acts as a bridge between applications and data processing performed
at hardware level using inter-process communication and system calls.
Kernel loads first into memory when an operating system is loaded and remains into memory
until operating system is shut down again. It is responsible for various tasks such as disk
management, task management, and memory management.
Kernel has a process table that keeps track of all active processes
• Process table contains a per process region table whose entry points to entries in region table.
Kernel loads an executable file into memory during ‘exec’ system call’.
Objectives of Kernel :
In kernel mode, the program has direct and In user mode, the application program executes
unrestricted access to system resources. and starts. Difference Between
Kernel-mode vs User mode Kernel mode and User mode:
In Kernel mode, the whole operating system might In user mode, a single process fails if an interrupt
go down if an interrupt occurs occurs.
Interruptions
Kernel mode is also known as the master mode, User mode is also known as the unprivileged mode,
privileged mode, or system mode. restricted mode, or slave mode.
Modes
In kernel mode, all processes share a single virtual In user mode, all processes get separate virtual
address space. address space.
Virtual address space
In kernel mode, the applications have more While in user mode the applications have fewer
privileges as compared to user mode. privileges.
Level of privilege
Only essential functionality is permitted to operate User programs can access and execute in this mode
in this mode. for a given system.
Access
The user mode is a standard and typical viewing
The kernel mode can refer to any memory block in mode, which implies that information cannot be
the system and can also direct the CPU for the executed on its own or reference any memory
execution of an instruction, making it a very potent block; it needs an Application Protocol Interface
and significant mode. (API) to achieve these things.
Functionality