Thread View: comp.os.os2.programmer
1 messages
1 total messages
Started by Christophe Wolfhugel
Thu, 06 Jun 1991 17:11
Dos calls efficiency
Author: Christophe Wolfhugel
Date: Thu, 06 Jun 1991 17:11
Date: Thu, 06 Jun 1991 17:11
20 lines
1323 bytes
1323 bytes
When the same memory segment is given more than once to the same pid,
is there a counter incremented so that as many DosFreeSeg are
necessary as there were DosGiveSeg?
Are DosGiveSeg/DosGetSeg/DosFreeSeg as much time consuming on the
first operation for a given {selector,pid} or is it much faster after
(just the cycles to increment the counters, if any?).
In my portion of code, there are 3 sequential DosGiveSeg to a given
pid, and in 99% of the cases it's the same segment that is given (but
in the 1% I really have 3 different selectors). Do I have interest in
testing if all 3 GiveSeg (and their respective Get/Free) should be
executed or is it OK to call the Dos Calls each time?
Regards,
--
Christophe Wolfhugel | Email: wolf@grasp1.univ-lyon1.fr
INSA - Dpt Informatique | "Le progres ne vaut que s'il est partage par tous,"
Lyon, France | "les greves aussi. Hassan Cehef: c'est penible!"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads