Difference Between Monolithic Kernel and Micro kernel

Monolithic Kernel and Micro Kernel Difference

Comparison Between Monolithic Kernel and Micro Kernel

Summary: Kernel is the main core part of an operating system. It manages system resources. Kernel is a bridge between hardware and application of the computer. Let discuss the Difference between Micro kernel and Monolithic kernel in Tabular Form.

Difference Between Monolithic Kernel and Micro kernel
Difference Between Monolithic Kernel and Micro kernel

Comparison Chart

Monolithic Kernel Micro Kernel
Kernel size is large. Kernel size is small.
OS is complex to design. OS is easy to design, implement and install.
Request may be serviced faster. Request may be serviced slower than monolithic Kernel.
All the operating system services are included in the Kernel. Kernel provides only IPC and low level device management services.
No message-passing and no context switching are required while the Kernel is performing the job. Microkernel requires message passing and context switches.
Monolithic kernel used in Windows 95, Windows 98, Linux and FreeBSD etc. Microkernel used in Linux, BSDs , Microsoft Windows (95,98), Solaris, OS-9, AIX, HP-UX, DOS, OpenVMS, XTS-400 etc.




Monolithic Kernel

  • Traditional UNIX operating system uses monolithic kernel architecture. The entire operating system runs as a single program in kernel mode. The program contains an operating system core function and device drivers.
  • Most of the operation performed by kernel is via system call. Required system calls are made within programs and a checked copy of the request is passed through a system call. Image shows monolithic kernel.
  • LINUX operating system and FreeBSD uses modem monolithic kernel architecture. It loads the modules at run time. There is easy access of kernel function as required and minimize the code running in kernel space.
  • Monolithic kernel used in Windows 95, Windows 98, Linux and FreeBSD, etc.
Monolithic Kernel
Monolithic Kernel

Advantages Monolithic kernel

  1. Simple to design and implement.
  2. Simplicity provides speed on simple hardware.
  3. It can be expanded using a module system.
  4. Time tested and design well known.

Disadvantages Monolithic kernel

  1. Runtime loading and unloading are not possible because of the module system.
  2. If code base size increases maintain is difficult
  3. Fault tolerance is low.

Microkernel

  • Microkernel provides minimal services like defining memory address space. IPC and process management. It is a small operating core. Hardware resource, management is implemented whenever the process is executing. The function of Microkernel is to provide a communication facility between the client programs.
  • It also provides a facility for various services that are running in userspace. The message passing method is for communication two processes.
  • Microkernel runs in kernel mode and rests run in normal user processes. Microkernel also provides more security and reliability. Most of the services are running as user rather than kernel processes. By running a device driver and file system as a separate user process, an error in one can crash only a single component. The image shows Microkernel.
  • Mach operating system uses Microkernel architecture. A microkernel is a Windows NT operating system provides portability and modularity. The kernel is surrounded by a number of compact subsystems so that the task of implementing Windows NT on a variety of platforms is easy.
  • Microkernel architecture assigns only a few essential functions to the kernel, including address space. IPC and basic scheduling. QNX is a real-time operating system that is also based upon the Microkernel design.
  • The main disadvantage is poor performance due to increased system overhead from message passing.
Microkernel
Microkernel

Advantages of Microkernel

  1. Microkernel allows the addition of new services.
  2. Microkernel architecture design provides a uniform interface on requests made by a process.
  3. Microkernel architecture supports the object-oriented operating system.
  4. Modular design helps to Stance reliability.
  5. Microkernel fends itself to distributed system support.
  6. Microkernel architecture supports flexibility. User according to the requirement.




More Differences

  1. Difference Between Hard and Soft Real-Time System
  2. Difference Between Paging and Segmentation