gpt4 book ai didi

operating-system - MS Windows 有什么样的内核?

转载 作者:行者123 更新时间:2023-12-04 05:35:14 25 4
gpt4 key购买 nike

我在 Linux Kernel 上看到了一个问题。在阅读时我有 this doubt .

最佳答案

Windows 的 Windows NT 分支有一个混合内核。它既不是所有服务都在内核模式下运行的单体内核,也不是所有服务都在用户空间中运行的微内核。这提供了从微内核获得的保护和在单体内核中可以看到的性能之间的平衡(因为用户/内核模式上下文切换较少)。

例如,设备驱动程序和硬件抽象层在内核节点中运行,而工作站服务在用户模式下运行。维基百科文章 Hybrid Kernels有一个很好的概述。

Windows Internals这本书解释了混合方法

... The Carnegie Mellon University Mach operating system, a contemporary example of a microkernel architecture, implements a minimal kernel that comprises thread scheduling, message passing, virtual memory, and device drivers. Everything else, including various APIs, file systems, and networking, runs in user mode. However, commercial implementations of the Mach microkernel operating system typically run at least all file system, networking, and memory management code in kernel mode. The reason is simple: the pure microkernel design is commercially impractical because it’s too inefficient.

关于operating-system - MS Windows 有什么样的内核?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1807328/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com