Microsoft discloses details about Windows Subsystem for Linux
Last month, Microsoft officially announced that Bash on Ubuntu on Windows has supported Linux ELF64 binary files in Windows 10 using Windows Subsystem for Linux (WSL) native. WSL was developed by Microsoft's Windows Kernel team. Since it was announced last month and provided for trial in Windows Insider Build, many users are interested in learning how Windows Kernel Team establishes this subsystem.
In response to user attention, Microsoft has provided an overview of Windows Subsystem for Linux, answered common WSL questions, and disclosed implementation details. Although we have briefly analyzed how Ubuntu on Windows 10 works, let's take a look at Microsoft's official response.
WSL is a collection of components that support native Linux ELF64 binary files running on Windows. It contains user mode and kernel mode components:
- User Mode Session Manager Service processes the lifecycle of a Linux instance
- The Pico provider Driver (lxss. sys, lxcore. sys) simulates Linux kernel translation for Linux system calls.
- Pico process hosting unmodified user mode Linux (for example,/bin/bash)
The miracle occurs between the Linux binary file in the user mode and the Windows Kernel. the Linux binary file in the Pico process can direct the Linux system call to the Windows kernel, while lxss. sys and lxcore. the sys Driver translates Linux system calls into NT APIs and simulates Linux Kernel.
Address: http://www.sysgeek.cn/windows-subsystem-for-linux-architectural-overview/
Address: http://www.linuxprobe.com/subsystem-for-linux/