🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3534

Re: Does OS/2 support Shared Memory?

#3534
From: David Charlap
Date: Fri, 22 Jan 1993 17:21
24 lines
1579 bytes
In article <C17Kwo.7E7@techbook.com> tonyb@techbook.com (Tony Bennett) writes:
>Unix has the concept of shared memory, that is multiple programs accessing a
>common area of memory.  Does OS/2 support that concept and if so what functions
>are used...  a little snippet of code using those functions would be
>very helpfull.

Well, I don't think there is a Unix-equivalent method for sharing
memory, but I know the following:

1) Multiple threads of one program share a common global data space.
   So all static and global variables will be shared among multiple
   threads in one application.

2) If a single .DLL is referenced by multiple applications at once, I
   believe that it's static and global variables (maybe only the
   exported ones...) are shared among the apps.

3) There may be a way to just allocate shared memory, but I don't
    know.
-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
Technical Details
Message-ID: <1993Jan22.172156.20934@njitgw.njit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!asuvax!cs.utexas.edu!sun-barr!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
References: <C17Kwo.7E7@techbook.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!asuvax!cs.utexas.edu!sun-barr!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Does OS/2 support Shared Memory?
Message-ID: <1993Jan22.172156.20934@njitgw.njit.edu>
Date: 22 Jan 93 17:21:56 GMT
References: <C17Kwo.7E7@techbook.com>
Sender: news@njit.edu
Organization: New Jersey Institute of Technology, Newark, N.J.
Lines: 24
Nntp-Posting-Host: hertz.njit.edu