I'm developing MY PMode OS (MYPMOS

At this point I'm thinking of giving every task its own ldt with data, code and stack segment. And use paging also. Every task gets 64MB of virtual mem space (16 page tables) when the task needs more mem another page gets mapped into real adres space. The problem is that the task switching is slow because of the reloading of the segments.
Thanks in advance,
Lont