Microkernel in Operating System | Operating System

593 views 12 slides May 15, 2024
Slide 1
Slide 1 of 12
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12

About This Presentation

Explore the revolutionary concept of microkernel architecture in operating systems with this comprehensive presentation. From its inception to its contemporary applications, this PowerPoint provides a deep dive into the essence and significance of microkernels.

Covering the following key aspects:

...


Slide Content

Name: Sampad Kar Student Code: BWU/BTA/22/225 Course Name: Operating Systems Course Code: PCC-CSM401 Group: D Session: 2023-24

Microkernel in Operating Systems

Introduction to Kernel What is a Microkernel? Microkernel Architecture Advantages of Microkernel Disadvantages of Microkernel Microkernel vs Monolithic Kernel Use Cases References Agenda

A kernel is the core component of an operating system. It plays a crucial role in managing computer operations and hardware. The kernel acts as a bridge between user applications and the low-level data processing performed by hardware. When an operating system is loaded, the kernel is the first component to load into memory and remains there until the system shuts down. It handles tasks such as disk management, task management, and memory management. Introduction to Kernel

What is a Microkernel? This method structures the operating system by removing all nonessential components from the kernel and implementing them as system and user-level programs. The result is a smaller kernel. . The primary idea behind a microkernel is to provide only the essential services needed for inter-process communication, memory management, and basic hardware abstraction.

Microkernel Architecture The switch between User Mode and Kernel Mode is done through system calls. The mode bit of kernel-mode is 0, while the mode bit of user-mode is 1 . In a microkernel architecture, user-level processes run until they need kernel-level services, initiating a system call. The CPU switches to kernel mode, transferring control to the microkernel. Here, the microkernel executes the requested operation, which may involve managing hardware or coordinating inter-process communication. After completion, the CPU transitions back to user mode, allowing the user-level process to continue. Context switching involves saving and restoring process state, ensuring seamless execution. This design enhances modularity and security, as system-level services operate independently, minimizing the kernel's size and reducing the risk of critical failures.

Modularity: The modular approach makes it easier to maintain, extend, and debug the system. . Advantages of Microkernel Security: Services run in user space, isolating them from the core kernel, which helps prevent security breaches from affecting critical system functions. . Reliability: Because microkernels have a small and well-defined core, Faults in peripheral components can be isolated and managed without affecting the entire system.

Increased System Resource Usage: Microkernels may require more System resources compared to monolithic kernels due to the overhead associated with Managing separate processes and IPC mechanisms. Disadvantages of Microkernel Performance Overhead: Context switches between user and kernel space, as well as message Passing between components, can introduce latency and reduce overall system performance. Complexity of Implementation: Designing and implementing a microkernel-based operating system is often more complex than developing a monolithic kernel.

Monolithic Vs Microkernel

Use Cases The microkernel is specially useful in systems where modularity, scalability and security plays an important role. Apple’s MacOS, iOS, iPadOS are based on microkernel

References https://www.javatpoint.com/microkernel-in-operating-system#:~:text=Microkernels%20are%20secure%20since%20only,so%20it%20may%20perform%20better . https://en.wikipedia.org/wiki/Microkernel https://www.geeksforgeeks.org/microkernel-in-operating-systems/

Thank You