Subject: Re: Arch-specific maxproc limit?
To: Matthias Scheler <tron@zhadum.de>
From: Wojciech Puchar <wojtek@tensor.3miasto.net>
List: port-i386
Date: 01/01/2003 19:41:20
> > choose the victim to be determined). This way we will not have such
> > limits, and the system will be able to run many more processes.
>
> Is there a good reason why each process needs a GDT entry at all?
> Couldn't the scheduler just use two alternating GDT entries? Each
> process could have its GDT entry (only 8 bytes) in the architecture
> depent part of the process structure. The scheduler would copy it into
> the unused GDT entry, load its number into the task register and
> mark the user GDT entry as unused.
>
> 	Kind regards
>

does it need to modify GDT at all? can't it simply use only one TSS, only
this 2 GD entries (code+data) and switch processes without using CPU
mechanism. i think esp. in modern CPU it could be even faster, not slower