home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / programm / 7860 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1018 b   |  28 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!cs.utexas.edu!torn!skule.ecf!kumarad
  3. From: kumarad@ecf.toronto.edu (KUMARADAS JOSEPH CARL)
  4. Subject: Re: Does OS/2 support Shared Memory?
  5. Message-ID: <C17v8w.8EL@ecf.toronto.edu>
  6. Organization: University of Toronto, Engineering Computing Facility
  7. References: <C17Kwo.7E7@techbook.com>
  8. Date: Thu, 21 Jan 1993 18:26:53 GMT
  9. Lines: 17
  10.  
  11. In article <C17Kwo.7E7@techbook.com> tonyb@techbook.com (Tony Bennett) writes:
  12. >
  13. >
  14. >If this is in the FAQ, I'm sorry.  
  15. >Unix has the concept of shared memory, that is multiple programs accessing a
  16. >common area of memory.  Does OS/2 support that concept and if so what functions
  17. >are used...  a little snippet of code using those functions would be
  18. >very helpfull.
  19. >Thanks in Advance.
  20. >-- 
  21.  
  22. Yes, it supports shared memory.  There is supprt for both "named" and
  23. "give-get" shared memory.  Take a look at the following API's: 
  24. DosAllocSharedMem(), DosGetNamedSharedMem(), DosGiveSharedMem(),
  25. DosGetSharedMem() and DosFreeMem().
  26.  
  27. Carl.
  28.