ਢ, த OS/2

㦭   ࠡ  .

ࠢ쭮   , :

1. १ࢨ஢  DosAlloc (-)  commit
2. DosSubSetMem ( )  DOSSUB_INIT ᯥ  ⮬᪨ commit ᪠ -  ᢮ HEAP
3. DosSubSetMem  㫥 䫠 ᯥ 㣮    ⮩ 
4. DosSubSetMem (  + )  DOSSUB_GROW   㯭   ࠭  饭 ᮪  ᯮ짮 DosSubAlloc. -      騢 HEAP.
5.  ,  ਠ稫   DosSubSetMem  뤠 DosSubUnsetMem  ⮫쪮 ᫥,  ᢮  DosFreeMem?
6.  ய⨫   祣?   DosSetMem  commit -   㦭?   ᠭ  DosSetMem    ᥪ

---

> 3. DosSubSetMem  㫥 䫠 ᯥ 㣮    ⮩ 

  蠫,   ,  訢  㤥 -⠪   DosGetSharedMem.

> 5.  ,  ਠ稫   DosSubSetMem  뤠 DosSubUnsetMem  ⮫쪮 ᫥,  ᢮  DosFreeMem?

 ࠧ  ᪠,  "All calls to DosSubSetMem must eventually be followed by a call to DosSubUnsetMem" - , ,  ᥬ 뢠...

> 6.  ய⨫   祣?   DosSetMem  commit -   㦭?

 㭪  ࠭栬  4  ࠡ⠥,   ⠬ ᠬ  㦭  뢠.

---

> > 3. DosSubSetMem  㫥 䫠 ᯥ 㣮    ⮩ 
>
>   蠫,   ,  訢  㤥 -⠪   DosGetSharedMem.

DosGetSharedMem ᠬ ᮡ

> > 5.  ,  ਠ稫   DosSubSetMem  뤠 DosSubUnsetMem  ⮫쪮 ᫥,  ᢮  DosFreeMem?
>
>  ࠧ  ᪠,  "All calls to DosSubSetMem must eventually be followed by a call to DosSubUnsetMem" - , ,  ᥬ 뢠...

⮡ 騢 祭  室  樠樨  䫠:

APIRET rc = DosSubSetMem (DATA, DOSSUB_INIT | DOSSUB_SPARSE_OBJ, mem_size);

 ⮬ :

APIRET rc = DosSubSetMem (DATA, DOSSUB_GROW | DOSSUB_SPARSE_OBJ, more_mem_size);

,  , DOSSUB_GROW   筮.