Explain service provided by kernel.
The services provided by the kernel are:
-
Controlling the execution of processes by allowing their
creation, termination or suspension, and communication.
-
Scheduling processes fairly for execution on the CPU. Processes
share the CPU in a time-shared manner: the CPU5 executes a process, the
kernel suspends I when its time quantum elapses, and the kernel schedules
another process to execute. The kernel later reschedules the suspended
process.
-
Allocating main memory for an executing process. The kernel
allows processes to share portions of their address space under certain
conditions, but protects the private address space of a process from outside
tampering. If the system runs low on free memory, the kernel frees memory
by writing a process temporarily to secondary memory, called a swap device.
If the kernel writes entire processes to a swap device, the implementation
of the UNIX system is called a swapping system; if it writes pages of memory
to a swap device, it is called a paging system.
|