Mail Archives: djgpp-workers/1998/03/11/06:33:15
Eli Zaretskii wrote:
>
> On Wed, 11 Mar 1998, Bill Currie wrote:
>
> > Store Task Register. However, I'm not certain windows uses task
> > segments. AFAICT from the Win3.0 VxD docs, the VMM (the real OS behind
> > windows, also the DPMI provider) uses the ring 0 stack to hold task
> > info, though I could easily be wrong.
>
> I'm really vague on these issues, but doesn't protected mode require a
> TSS?
Sure! But, I think what Bill means to say that Windows does the
multitasking itself without using the processor's multitasking features
(at least not the task switching mechanism). Therefore all DOS tasks
would be executed in the same processor task, and yield therefore the
same TSS-selector (if you can get at it).
> If we can easily get the VM id number and if that number is unique (i.e.
> not reused if I e.g. close a DOS box and open it again), then the VM id
> and the PSP should be enough; we don't need the time part at all.
Reusage of an ID is not what I see defined under 'unique'. The only
thing that is required is that two running processes don't have the same
ID. When a process was terminated and restarted again, it can perfectly
get the same ID. In 'nix this is AFAIK not different.
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -