🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #15

Re: Q: How do DLLs and threads work in OS/2? (VX-REXX)

#15
From: Eric Giguere
Date: Wed, 25 Oct 1995 02:37
19 lines
1282 bytes
No matter how you allocate memory, as soon as the memory is allocated
it is available to all threads in the same process.  Whether or not
it is available to different processes depends on whether it was
allocated as shared memory or not, and whether the process knows
about it and thus can get access to it.

Note that this is different from sharing your program/static variables,
which can be shared or not depending upon the linker/DEF settings.

Which method you choose depends on the situation.  Personally I always
find it simpler and more convenient to let every DLL have its own
per-process data.  Then you just worry about the threads in the process
sharing the data.

If you have other questions, please move this thread to 
comp.os.os2.programmer.misc.  This really has nothing to do with REXX 
or VX-REXX.

Eric
Technical Details
Message-ID: <DGzGMx.7uM@undergrad.math.uwaterloo.ca>
Path: arc1-ca.pugleaf.net!undergrad.math.uwaterloo.ca!giguere

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer.misc,comp.lang.rexx
Path: arc1-ca.pugleaf.net!undergrad.math.uwaterloo.ca!giguere
From: giguere@csg.uwaterloo.ca (Eric Giguere)
Subject: Re: Q: How do DLLs and threads work in OS/2? (VX-REXX)
Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
Message-ID: <DGzGMx.7uM@undergrad.math.uwaterloo.ca>
Date: Wed, 25 Oct 1995 02:37:44 GMT
Nntp-Posting-Host: csg.uwaterloo.ca
Organization: University of Waterloo