Mail Archives: djgpp/1996/04/01/14:22:19
Locking memory is used to make a memory block not pagenable, that is,
it will not be swapped to disk. This is done because in real-time
aplications (using hardware interrupts, etc) the data and code must
residy in RAM. If the data was swapped to disk when the interrupts occur
the process of reading that page again would require to much time.
I don't understand much of 386 protect-mode descriptor's but i guess
that function just toggles some bit in the descriptor to tell the
processor that the block is not paginable. If you read the dpmi specs,
you can find a better explanation about that.
Luciano R. M. Silva
- Raw text -