歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> 微軟披露Windows Subsystem for Linux細節

微軟披露Windows Subsystem for Linux細節

日期:2017/3/6 9:56:54   编辑:學習Linux

微軟披露Windows Subsystem for Linux細節


微軟披露Windows Subsystem for Linux細節


導讀上月,微軟正式宣布Bash on Ubuntu on Windows功能已經可通過 Windows Subsystem for Linux (WSL) 原生支持 Linux ELF64 二進制文件在 Windows 10 中執行。WSL 是由微軟 Windows Kernel 團隊開發的,自上月宣布並在 Windows Insider Build 版本中提供試用以來,很多用戶都開始關注並有興趣知道 Windows Kernel Team 是如何建立該子系統的。

windows subsystem for linux 01

為回應用戶關注,微軟在 對 Windows Subsystem for Linux 進行了概述、回答了 WSL 的常見問題並披露了相關實現細節。雖然我們前文對Ubuntu on Windows 10 的工作方式也進行過簡要解析,還是一起在看看微軟的官方回應。

windows subsystem for linux 02jpg

WSL 是支持原生 Linux ELF64 二進制文件在 Windows 上運行的組件集合,它包含用戶模式和內核模式組件:

  • 用戶模式會話管理器服務處理 Linux 實例的生命周期
  • Pico 提供者驅動程序(lxss.sys, lxcore.sys)模擬 Linux kernel 翻譯 Linux 系統調用
  • Pico 進程托管未修改的用戶模式 Linux(例如 /bin/bash)

奇跡就發生在用戶模式 Linux 二進制文件和 Windows Kernel 之間,通過 Pico 進程中的 Linux 二進制文件可以將 Linux 系統調用導向到 Windows kernel,而 lxss.sys 和 lxcore.sys 驅動則負載將 Linux 系統調用翻譯成 NT API 和模擬 Linux Kernel。

原文地址:http://www.sysgeek.cn/windows-subsystem-for-linux-architectural-overview/

轉載地址:http://www.linuxprobe.com/subsystem-for-linux/

http://xxxxxx/Linuxjc/1133909.html TechArticle

Copyright © Linux教程網 All Rights Reserved