📜  微内核和模块化内核之间的区别

📅  最后修改于: 2021-08-25 18:34:13             🧑  作者: Mango

先决条件–操作系统中的内核

1.微内核:
顾名思义,Micro Kernel基本上是一种软件或代码,通常仅包含最少数量的功能,数据和仅用于实现OS的功能。它是非常小的内核,代表了经过充分研究的OS结构思想。简而言之,需要微型内核才能正确实现操作系统。

2.模块化内核:
顾名思义,模块化内核是一种内核,其中系统核心的某些部分将分配到称为模块的独立文件中。可以在运行时将其添加到系统中。通常需要少量的加载模块时间。如果需要新模块,则无需重新编译。

微内核和模块化内核之间的区别:

Micro Kernel

Modular Kernel 

It generally provides mechanisms that are required to implement on OS.   It generally allows administrator to add functionality only when it is required.
It provides more security and reliability as compared to modular kernel.  It provides less security and reliability as compared to micro kernel.  
It usually simplifies debugging and system verification, change service without restarting system, etc.   It usually decreases boot time, does not have to load everything at boot time, faster development time, etc.
It simply places code in user space and requires that channels be used to connect code modules.  It simply places place any code in any ring that it chooses.  
In this, minimal or less functionalities or facilities are required to load further services. In this, different kernel services are separated into different files so that one can link monolithic kernel with functionality or facilities that are required.  
Its main aim is to minimize or reduce kernel and implement as much as possible outside TCB.   Its main aim is to keep what is loaded in boot-time minimal while still enabling kernel to execute more functions that are complex.  
It generally includes low-level address space management, IPC (Inter-Process Communication). It generally includes simply filesystem driver, built-in native file system driver with other storage modules, etc.