Mail Archives: djgpp/2000/02/24/05:14:14
On Tue, 22 Feb 2000, Chris Jones wrote:
> But what I can't understand is when Win32
> programs crash Windows 9x completely - surely they are insulated much more
> than DOS apps, and shouldn't be able to do any damage at all.
Actually, it's the other way around: DOS apps are insulated from the
OS and from each other much more than Win32 apps. That's because DOS
apps run in a different virtual machine (one each for every DOS box
you have open on your system), while Win32 apps all run in the same
VM, and share that VM with the kernel.
The extra level of insulation between different VMs is due to several
factors:
- the description tables (LDTs) are not shared between VMs;
- each VM uses a separate page directory.
In contrast, different Win32 apps running in system VM all share the
same LDT and the same page directory, the only insulation between them
being the page tables, which Windows switches when it multitasks
between Win32 apps.
- Raw text -