Windows内核:微软帝国的基石

Windows内核:微软帝国的基石

Windows内核:微软帝国的基石

开篇引入

话说你打开Windows电脑,开始工作。

Windows操作系统在后台默默运行,管理着一切:

  • 打开程序时,Windows分配内存和CPU时间
  • 保存文件时,Windows调用文件系统
  • 联网时,Windows处理网络协议

Windows内核 = 整个Windows系统的核心引擎。

核心概念

Windows内核架构

┌──────────────────────────────────────────────────┐ │ 用户态 │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │ 应用程序 │ │ DLLs │ │ 服务 │ │ │ └─────┬────┘ └─────┬────┘ └─────┬────┘ │ └─────────┼─────────────┼─────────────┼────────────┘ │ │ │ └──────