TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Arjen Lentz
from: david begley
date: 1994-08-08 02:41:56
subject: OS/2 EXEs with shared code?

On Jul 30, 1994 at 15:58, Arjen Lentz of 2:283/512{at}fidonet wrote:

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

Errm, no, not exactly:

    "Segments with private addresses and private storage are those
    allocated by the memory management API, and read-write data
    segments that are loaded from executable files.  Segments with
    private addresses and shared contents are executable code and
    read-only data segments.  Thus, executable EXE code and read-only
    data segments can be shared by all processes that are running the
    same EXE."
                    - Deitel and Kogan, The Design of OS/2, p. 146

Although the above description is for OS/2 1.x, the same holds true for
OS/2 2.x - that is, shared code and read-only data (in both EXEs and DLLs)
is shared amongst processes, whilst read-write data must be instantiated
for each process.


    - dave
    david{at}cagney.nepean.uws.edu.au

---
* Origin: [ epicentre of the universe -- sydney australia ] (3:711/934.4)
SEEN-BY: 711/809 934
@PATH: 711/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™.