Mail Archives: djgpp/1998/02/20/04:15:27
>But presumably the program has to run a while before the DPMI server can
tell
>that such a part of the program isn't obeyed much. If so, how can I give
the
Actually the dpmi server loads only the parts of the program/data that are
required at a given moment. These parts remain in memory only if they are
called/used often enough, so the problem of "usefulness accounting" is
resolved automagically by the memory manager, and you don't have to worry.
>DMPI server a helping hand here by telling it at the start of the program
that
>e.g. "int* Han_Solo(int,FILE*,float(int,char)) isn't used much if at all,
swop
>it out if you want to."?
It is not necessary at all: if it isn't used much it will eventually get
swapped
out by the memory manager. If it isn't used at all then it will not even be
loaded into memory.
ciao
Giacomo
- Raw text -