🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#14
From: Carsten Whimster
Date: Tue, 24 Oct 1995 23:28
30 lines
1963 bytes
In message <46jpt7$r2j@jobe.shell.portal.com> - cgdaney@shell.portal.com (Charl
es G Daney) writes:
|  
|  
|  
|   > well, I have this data that I am trying to move out of VX-REXX, so how
|   > else can I do it? Even if I allocate some memory, I'll still have to
|   > serialize access, right?
|   
|  It depends how you allocate the memory. If you use malloc, it is private
|  to each thread. The C library takes care of that. If you use DosAllocMem,
|  it all depends on whether the pointer is available to more than one
|  thread. If in fact several threads could access the memory, then you do
|  need some sort of serialization.
|   
|  Charles
|  http://www.quercus-sys.com

Is there anu advantage to doing things this way, rather than with the 
options in the lnk/def file? It seems to me that this must have been 
exactly why they enabled that in the first place. Each VX-REXX app
instance will only ever need the data in one thread (I hope), and in 
any case, they MUST have access to the same, synchronized data, which
is much more important than separating stuff out (right?).

          Carsten Whimster     bcrwhims@uwaterloo.ca
           EDM/2 Associate Editor and Book reviewer
            Team OS/2           POV-Panel/2 author
                 OS/2 and Internet consultant
      http://www.undergrad.math.uwaterloo.ca/~bcrwhims/
Technical Details
Message-ID: <DGz7vr.9Gv@watserv3.uwaterloo.ca>
Path: arc1-ca.pugleaf.net!watserv3.uwaterloo.ca!news
References: <DGqB16.Gn4@undergrad.math.uwaterloo.ca> <DGrtxo.nyu@undergrad.math.uwaterloo.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer.misc,comp.lang.rexx
Path: arc1-ca.pugleaf.net!watserv3.uwaterloo.ca!news
From: bcrwhims@uwaterloo.ca (Carsten Whimster)
Subject: Re: Q: How do DLLs and threads work in OS/2? (VX-REXX)
Message-ID: <DGz7vr.9Gv@watserv3.uwaterloo.ca>
Sender: news@watserv3.uwaterloo.ca
Nntp-Posting-Host: cnts3p31.uwaterloo.ca
Organization: University of Waterloo
X-Newsreader: NeoLogic News for OS/2 [version: 4.2 UNREGISTERED 28 days remaining]
References: <DGqB16.Gn4@undergrad.math.uwaterloo.ca> <DGrtxo.nyu@undergrad.math.uwaterloo.ca>
Date: Tue, 24 Oct 1995 23:28:39 GMT