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

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!gatech!rpi!batcomputer!lynx@msc.cornell.edu!tommy
  3. From: tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927)
  4. Subject: Re: Does OS/2 support Shared Memory?
  5. Message-ID: <1993Jan21.175825.28938@msc.cornell.edu>
  6. Originator: tommy@snoopy.msc.cornell.edu
  7. Sender: news@msc.cornell.edu
  8. Organization: Cornell-Materials-Science-Center
  9. References: <C17Kwo.7E7@techbook.com>
  10. Date: Thu, 21 Jan 1993 17:58:25 GMT
  11. Lines: 22
  12.  
  13. From article <C17Kwo.7E7@techbook.com>, by tonyb@techbook.com (Tony Bennett):
  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
  17. > functions are used...  a little snippet of code using those functions would
  18. > be very helpfull.
  19. > Thanks in Advance.
  20.  
  21. Yes, the DosAllocShrSeg function under 1.3 does exactly that.  There is
  22. an equivalent routine in 2.0, but I don't have the call sequence in front
  23. of me.  Check the manual for the developer's kit under memory management
  24. in the CP reference section.  Examples are generally good.
  25.  
  26. Drop me e-mail if you still have problems.  It might be about time to port
  27. some of that old 1.3 code to 2.0 and learn the new call sequences.
  28. -- 
  29. Michael O. Thompson            tommy@msc.cornell.edu
  30. Cornell University             (607) 255-4714
  31.  
  32. OS/2:  For the few, the proud, the devoted!
  33.