Back then before 2016 people always saw linux users..
They wore hoodies and they looked happy because of how free they were. They got jealous and so Microsoft invested a significant amount of resources in creating a virtual environment inside windows that runs linux commands and is executed by the windows operating system this was WSL 1
First they started with the idea of having a windows command translated directly into
Fast forward, and now we have WSL 1 and WSL 2
But have you Ever wondered what happens when you run Linux commands via WSL? Letβs break it down.
In one of last posts i explained the concept of a system call and the journey from shell all the way to the hardware
A system call is how a program asks the operating system to do something for it.
The first one uses a system call translation layer converts Linux system calls into Windows kernel calls.
This interestingly works without any need for a Virtual machine.
The only problem with WSL1 was poor file system performance
But still It was proved to be possible
Then the Second Came for this one it actually runs a real Linux kernel inside a lightweight Hyper V Virtual Machine.
Linux commands execute here without any traslation layer with full system call support. Crazy right
fun thing about wsl2 is it Supports Docker containers


Top comments (0)