The Wayback Machine - https://web.archive.org/web/20240607174623/https://www.geeksforgeeks.org/difference-between-microkernel-and-monolithic-kernel/
Open In App

Difference between Microkernel and Monolithic Kernel

Last Updated : 01 Jul, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

What is a kernel ?
The kernel is a computer program at the core of a computer’s operating system and has complete control over everything in the system. It manages the operations of the computer and the hardware.
There are five types of kernels :

  1. A micro kernel, which only contains basic functionality;
  2. A monolithic kernel, which contains many device drivers.
  3. Hybrid Kernel
  4. Exokernel
  5. Nanokernel

But in this tutorial we will only look into Microkernel and Monolithic Kernel.

1. Microkernel :
kernel manages the operations of the computer, In microkernel the user services and kernel services are implemented in different address space. The user services are kept in user address space, and kernel services are kept under kernel address space.

2. Monolithic kernel :
In Monolithic kernel, the entire operating system runs as a single program in kernel mode. The user services and kernel services are implemented in same address space.
 

Differences between Microkernel and Monolithic Kernel :

S. No. Parameters

Microkernel

Monolithic kernel

1. Address Space

In microkernel, user services and kernel services are kept in separate address space.

In monolithic kernel, both user services and kernel services are kept in the same address space.

2. Design and Implementation

OS is complex to design.

OS is easy to design and implement.

3. Size

Microkernel are smaller in size.

Monolithic kernel is larger than microkernel.

4. Functionality

Easier to add new functionalities.

Difficult to add new functionalities.

5. Coding

To design a microkernel, more code is required.

Less code when compared to microkernel

6. Failure

Failure of one component does not effect the working of micro kernel.

Failure of one component in a monolithic kernel leads to the failure of the entire system.

7. Processing Speed

Execution speed is low.

Execution speed is high.

8. Extend

It is easy to extend Microkernel.

It is not easy to extend monolithic kernel.

9. Communication To implement IPC messaging queues are used by the communication microkernels. Signals and Sockets are utilized to implement IPC in monolithic kernels.
10. Debugging Debugging is simple. Debugging is difficult.
11. Maintain It is simple to maintain. Extra time and resources are needed for maintenance.
12. Message passing and Context switching Message forwarding and context switching are required by the microkernel. Message passing and context switching are not required while the kernel is working. 
13. Services The kernel only offers IPC and low-level device management services. The Kernel contains all of the operating system’s services. 
14. Example

Example : Mac OS X.

Example : Microsoft Windows 95.

 


Similar Reads

Monolithic Kernel and key differences from Microkernel
Apart from microkernel, Monolithic Kernel is another classification of Kernel. Like microkernel, this one also manages system resources between application and hardware, but user services and kernel services are implemented under the same address space. It increases the size of the kernel, thus increasing the size of the operating system as well. T
5 min read
Difference between Micro Kernel and Modular Kernel
Prerequisite - Kernel in Operating System 1. MicroKernel:Micro Kernel, as the name suggests, is basically a software or code that usually contains a minimum number of functions that are required, data, and features simply to implement OS. It is a very small kernel and represents well studied OS structuring idea. In simple words, micro kernels are r
3 min read
Microkernel in Operating Systems
Introduction: A microkernel is a type of operating system kernel that is designed to provide only the most basic services required for an operating system to function, such as memory management and process scheduling. Other services, such as device drivers and file systems, are implemented as user-level processes that communicate with the microkern
8 min read
Monolithic Architecture
The monolithic operating system is a very simple operating system where the kernel directly controls device management, memory management, file management, and process management. All of the system's resources are accessible to the kernel. Every part of the operating system is contained within the kernel in monolithic systems. Monolithic architectu
6 min read
Difference between User Level thread and Kernel Level thread
Introduction - So in this article, we will see the overview of the User Level thread and Kernel Level thread. and also understand the basic required terms: User-Level Thread- The User-level Threads are implemented by the user-level software. the user-level threads are basically created and implemented by the thread library which OS provides as an A
4 min read
Difference between Operating System and Kernel
Operating System: It is a system program that provides interface between user and computer. When computer boots up Operating System is the first program that loads. Kernel: A kernel is the core component of an operating system. It is also a system program. It is the part of Operating System which converts user commands into machine language. Differ
2 min read
Difference between Process and Kernel Thread
1. Process: Process is an activity of executing a program. Process is of two types - User process and System process. Process control block controls the operation of the process. 2. Kernel Thread: Kernel thread is a type of thread in which threads of a process are managed at kernel level. Kernel threads are scheduled by operating system (kernel mod
1 min read
Difference between Shell and Kernel
Introduction : In a computer operating system, the shell and the kernel are two important components that work together to enable the user to interact with the system. The shell is a command-line interface that allows the user to enter commands to interact with the operating system. It acts as an intermediary between the user and the kernel, interp
3 min read
Difference between Preemptive and Non-Preemptive Kernel in OS
Introduction : A kernel is the central component of an operating system that manages system resources and provides a layer of abstraction between the hardware and software. One of the key design decisions for a kernel is whether it is preemptive or non-preemptive. A non-preemptive kernel, also known as a cooperative kernel, relies on processes yiel
4 min read
Difference Between Hypervisor and Exo-kernel
A software or firmware component called a hypervisor is used to build and manage virtual computers A virtual machine manager is called a hypervisor. By sharing resources like memory and computation, a hypervisor enables a single host computer to handle several virtual machines (VMs). The ability to rapidly construct new virtual machines (VMs) makes
3 min read