TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Arjen Lentz
from: Jeppe Madsen
date: 1994-08-02 13:05:28
subject: Re: OS/2 EXEs with shared code?

Hello Arjen!

Saturday July 30 1994, Arjen Lentz writes to All:

 AL> A DLL used by multiple OS/2 processes, will only be loaded once.
 AL> Right? An EXE running in multiple OS/2 processes, like a mailer/BBS in
 AL> a multi-line situation, will be loaded again for each process. Right?

 DLL's, Right. EXE's Wrong. In OS/2 EXE's the code is only loaded once
 (Data segments are of course loaded for each process. (same for dlls))

 For dos EXE's the code is loaded for each process (to support self-modifying
 code and other nasty dos'ism :-)

 AL> For instance UNIX only loads a program once, you
 AL> can even give it a 'sticky bit' attribute, forcing it to stay in
 AL> memory all the time, even if no processes use it at a particular time
 AL> (imagine a BBS program, called by getty).

 A 'sticky bit' isn't supported under os/2, but several utilities exits, which
 does nothing but load the code (using DosLoadModule)
 So to keep your bbs loaded, you say 'detach loadstuff mybbs.exe'

Regards
Jeppe

--- GoldED/2 2.42.G0614


* Origin: The JAM BBS * OS/2 paradise on earth! * +45-3142-0291 (2:236/100.38)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 236/100 235/107 9 50 23/996 240/5500 396/1 3615/50
@PATH: 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.