home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 7902 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.5 KB

  1. Path: sparky!uunet!gatech!asuvax!cs.utexas.edu!sun-barr!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Does OS/2 support Shared Memory?
  5. Message-ID: <1993Jan22.172156.20934@njitgw.njit.edu>
  6. Date: 22 Jan 93 17:21:56 GMT
  7. References: <C17Kwo.7E7@techbook.com>
  8. Sender: news@njit.edu
  9. Organization: New Jersey Institute of Technology, Newark, N.J.
  10. Lines: 24
  11. Nntp-Posting-Host: hertz.njit.edu
  12.  
  13. In article <C17Kwo.7E7@techbook.com> tonyb@techbook.com (Tony Bennett) writes:
  14. >Unix has the concept of shared memory, that is multiple programs accessing a
  15. >common area of memory.  Does OS/2 support that concept and if so what functions
  16. >are used...  a little snippet of code using those functions would be
  17. >very helpfull.
  18.  
  19. Well, I don't think there is a Unix-equivalent method for sharing
  20. memory, but I know the following:
  21.  
  22. 1) Multiple threads of one program share a common global data space.
  23.    So all static and global variables will be shared among multiple
  24.    threads in one application.
  25.  
  26. 2) If a single .DLL is referenced by multiple applications at once, I
  27.    believe that it's static and global variables (maybe only the
  28.    exported ones...) are shared among the apps.
  29.  
  30. 3) There may be a way to just allocate shared memory, but I don't
  31.     know.
  32. -- 
  33.   |)  David Charlap          | .signature confiscated by FBI due to
  34.  /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
  35. ((|,)                        | source of these .signature virusses
  36.  ~|~
  37.