3 ms·
> then they can easily fork from one parent copy. Ironically windows does not implement fork()
by dijit 5y ago
> then they can easily fork from one parent copy.
Ironically windows does not implement fork()
- vbezhenar 5y agoAFAIK Windows kernel is advanced enough to implement fork if necessary. WSL 1 uses it.
- marwis 5y agoThink at hypervisor level. Most VM solutions support some form of memory deduplication. VM level cloning wouldn't be too far from that model IMO.
- dryicerx 5y agoThis is exactly what VMware Horizon VDI does to create desktop VMs very quickly, called Instant Clone (aka VM Fork), and has been around for several years now. With that, you don't even need to do deduplication after the fact, it comes for free. When a new VM is forked, it's memory and disk are copy-on-write from the source/parent VM.
- j16sdiz 5y agoWindows NT was POSIX compatible. The ZwCreateProcess kernel api can do fork() semantic.
- marcodiego 5y agoIt is possible. But if achieving a reasonable performance was doable, they wouldn't need wsl2.
- naikrovek 5y agothat's a non-sequitur. windows not being Linux at the same time that a Mac was also Unix is what created WSL 1, and the limitations of WSL 1 led to WSL 2.
- dboreham 5y agoNeither does GitHub and yet...