home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7294 < prev    next >
Encoding:
Text File  |  1992-11-18  |  2.0 KB  |  45 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!ukma!lexmark!lexmark.com!BJANZEN
  3. From: bjanzen@lexmark.com
  4. Subject: Shared memory?
  5. Message-ID: <168A310A88.BJANZEN@lexmark.com>
  6. X-Disclaimer: These views are the poster's and not necessarily those of Lexmark
  7. Sender: usenet@lexmark.com (News Dude)
  8. Nntp-Posting-Host: lexvmlpp.lexmark.com
  9. Organization: Lexmark International, Lexington, KY
  10. Date: Wed, 18 Nov 1992 22:57:12 GMT
  11. Lines: 32
  12.  
  13.  
  14. We use /usr/include/system/shm.h to set up a a fairly large shared memory
  15. database for our realtime data application that is
  16. currently implemented on RS6000's.  No such thing on NeXT - it
  17. isn't too kosher in an object environment, but I could port an
  18. existing app NOW and redesign later if I knew if/where shm.h was.  The only
  19. reference I found was in librarian  -
  20.  
  21. ---------------
  22. Although messaging is similar to UNIX 4.3BSD stream sockets in
  23. that it permits reliable, kernel-mediated communication between tasks,
  24. messaging has a much more fundamental role within Mach.  Whereas UNIX
  25. processes obtain system services through a variety of interfaces
  26. (for example, the open() system call for files, the socket() and bind()
  27. system calls for network connections, and numerous access protocols for
  28. user-level services), Mach provides all services through messaging.
  29. Because of this consistency of interprocess communication, the Mach
  30. operating system can easily be extended to incorporate new features.
  31.  
  32. As an alternative to messaging, Mach also supports interprocess
  33. communication using shared memory.  However, if you use shared memory
  34. for interprocess communication, you're responsible for synchronizing the
  35. transmission and reception of the message.  With the Mach messaging
  36. system, Mach itself schedules the transmission and reception of messages,
  37. thereby ensuring that no message is read before it's been sent in its
  38. entirety.
  39. -------------
  40.  
  41. I'm responsible.  Where the heck is it, or just plain is it?
  42.  
  43. Barry Janzen
  44. bjanzen@lexmark.com
  45.