Mail Archives: djgpp/1997/03/05/18:53:04
Programs in protected mode run in any of four rings, being 3 (or 0, I don't
know for sure) the most privileged one and 0 (or 3) the least. Programs in
ring 3 can access all the memory of those running in the lowest rings,
those in ring two can access rings 0, 1 and 2 but not 3, etc.
That's widely used in Windows NiceTry and OS/2 to make the system stable.
In Windows NiceTry 4.0, the kernel and some parts of the file system run in
ring 3 (correct me if I'm wrong) and all the rest in ring 0. It makes it
completely impossible for an ordinary program to corrupt kernel data.
In NT 3.x, the video and file subsystems also were in ring 3, but MS moved
them to ring 0 to achieve speed gains, since ring switches eat a lot of cpu
time. In Win95, everything runs on ring 0.
Cristovao Braga.
cbraga AT datasoft DOT com DOT br
> From: Paul Derbyshire <ao950 AT FreeNet DOT Carleton DOT CA>
>
> What exactly is "ring 0"? A page on optimizing code using CWSDPR0
> mentioned it. But it's not clear to me what it is. I assume it isn't a
> modem thing...:)
- Raw text -