Microkernel in Operating System: Architecture, Advantages

Before we learn MicroKernel, let's understand:

What is Kernel?

A kernel is an important part of an OS that manages system resources. It also acts as a bridge between the software and hardware of the computer. It is one of the first program which is loaded on start-up after the bootloader. The Kernel is also responsible for offering secure access to the machine's hardware for various programs. It also decides when and how long a certain application uses specific hardware.

What is Microkernel?

Microkernel is a software or code which contains the required minimum amount of functions, data, and features to implement an operating system. It provides a minimal number of mechanisms, which is good enough to run the most basic functions of an operating system. It allows other parts of the operating system to be implemented as it does not impose a lot of policies.

Microkernels and their user environments are usually implemented in the C++ or C programming languages with a little bit of assembly. However, other implementation languages are possible with some high-level coding.

In this Operating system tutorial, you will learn:

What is a Monolithic Kernel?

Monolithic Kernel runs all the basic system services like process management, Memory management, I/O communication, and interrupt handling, file system, etc in kernel space.

In this type of Kernel approach, the entire operating system runs as a single program in kernel mode. The operating system is written as a collection of procedures that are linked together into a large executable binary program.

Microkernel Architecture

A Microkernel is the most important part for correct implementation of an operating system. You can see in the below-given diagram, that Microkernel fulfills basic operations like memory, process scheduling mechanisms, and inter-process communication.

Microkernel Based Operating System

Microkernel is the only software executing at the privileged level. The other important functionalities of the OS are removed from the kernel-mode and run in the user mode. These functionalities may be device drivers, application, file servers, interprocess communication, etc.

Components of Microkernel

A microkernel comprises only the core functionalities of the system. A component is included in the Microkernel only if putting it outside would interrupt the functionality of the system. All other non-essential components should be put in the user mode.

The minimum functionalities required in the Microkernel are:

Difference Between Microkernel and Monolithic Kernel

Parameters Monolithic kernel MicroKernel
Basic It is a large process running in a single address space It can be broken down into separate processes called servers.
Code In order to write a monolithic kernel, less code is required. In order to write a microkernel, more code is required
Security If a service crashes, the whole system collapses in a monolithic kernel. If a service crashes, it never affects the working of a microkernel.
Communication It is a single static binary file Servers communicate through IPC.
Example Linux, BSDs, Microsoft Windows (95,98, Me), Solaris, OS-9, AIX, DOS, XTS-400, etc. L4Linux, QNX, SymbianK42, Mac OS X, Integrity, etc.

Advantages of Microkernel

Here, are the pros/benefits of using Microkernel

Disadvantage of Microkernel

Here, are drawback/cons of using Microkernel:

Summary:

 

YOU MIGHT LIKE: