Professional Documents
Culture Documents
CSC 101 - Operating System-Week3
CSC 101 - Operating System-Week3
CSC 101 - Operating System-Week3
u The Kernel
u Types of Kernel
THE KERNEL
u In computer science, the kernel is the central component of most computer operating systems
(OS). Its responsibilities include
q managing the system's resources and
q Managing the communication between hardware and software components
u Some of the hardware resources managed by the kernel are:
v Input devices, e.g. keyboard and mouse.
v Output devices, e.g. display monitors, printers and scanners.
v Network devices, e.g. modems, routers and network connections.
v Storage devices, e.g. internal and external drives.
u A kernel provides the lowest-level abstraction layer for the resources (especially memory,
processors and I/O devices) that applications must control to perform their function.
Kernel
u Monolithic Kernels
u Microkernels
u Hybrid Kernels
MONOLITHIC KERNEL
u In a monolithic kernel, all OS services
run along with the main kernel thread,
thus also residing in the same memory
area.
u This approach provides rich and
powerful hardware access.
u The main disadvantages of monolithic
kernels are:
u the dependencies between system
components
- a bug in a device driver might crash the
entire system –
u and the fact that large kernels can
become very difficult to maintain.
u A Monolithic kernel is an OS
architecture where the entire
operating system (which includes
the device drivers, file system, and
the application IPC) is working in
kernel space.
Size Microkernel are smaller in size. Monolithic kernel is larger than microkernel.
Security If a service crashes, it has no effect on If a service crashes, the whole system
working of microkernel. crashes in monolithic kernel.
Code To write a microkernel, more code is To write a monolithic kernel, less code is
required. required.
HYBRID KERNELS
u Hybrid kernel Architecture is based on
combining aspects of microkernel and
monolithic kernel architectures used in
computer operating systems.
u The hybrid kernel approach tries to