微軟披露Windows Subsystem for Linux細節

來源:互聯網
上載者:User

微軟披露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 進行了概述、回答了 WSL 的常見問題並披露了相關實現細節。雖然我們前文對Ubuntu on Windows 10 的工作方式也進行過簡要解析,還是一起在看看微軟的官方回應。

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/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.