Log in

View Full Version : Just a small question.


nikolatesla20
July 12th, 2002, 16:08
I know this probably doesn't belong on this board, but it is related to RCE in my opinion.


What I'm wondering is if anyone out there has read about Windows Internals.

The question I have is this: The Intel chip allows tasks to be seperated using TSS's (Task State Segments). OK, first off, does MS Windows (for example, Win2k) use the processor's ability to do this, or do they manage it somehow themselves? And further, the documentation states that TSS segment descriptors must be in the GDT. And the GDT only allow 8192 entries or so. If Windoze does use TSS's does this mean you really could only have around 8000 tasks or so open at once? (If you had enough memory?)

I know, basic questions but I haven't found anything on the web yet referring to particular OS's and how they work and I'm too cheap to buy a book about windows

If anyone knows of any good links about windows internal operation, I'd appreciate it. I DID manage to find some links on how Windows NT boots up. Great reading !

-nt20

Ni2
July 12th, 2002, 18:06
hi nikolatesla20!

About Windows and the TSS....I was digging inside of Windows when i was doing my DOS-multitasker (ufff, long time ago ) and you can see that Windows doesnt take advantage of the TSS to make task switching. Instead, it just changes the page directory (pointed by CR3) to "map" the new task in the processor.

I think i read that a task switch using TSS takes lots of cpu cycles. I dont know if that's the reason that windows prefers to use direct access to the CR3 register or it is because of the problem of the 8192 GDT descriptors.

Hope this helps you a bit

Regards,
Ni2