home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / minix / 5022 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!paladin.american.edu!gatech!udel!louie!minix
  3. From: henrik@husc.harvard.edu
  4. Subject: Interprocess communication at user level
  5. Message-ID: <1992Dec31.165715.28021@udel.edu>
  6. Originator: mmdf@louie.udel.edu
  7. Sender: usenet@udel.edu (USENET News Service)
  8. Nntp-Posting-Host: louie.udel.edu
  9. Organization: University of Delaware
  10. Date: Thu, 31 Dec 1992 16:57:00 GMT
  11. Approved: usenet=relay@louie.udel.EDU
  12. Lines: 25
  13.  
  14.  
  15. Well, the problem is that user processes work in the opposite fashion from
  16. the system processes (like FS and MM), expecting to send a message and
  17. get a response, rather than they other way round.  Recall that all user
  18. processes use sendrec() to communicate with the lower layers.
  19.  
  20. While it would not be impossible to allow processes to send messages to
  21. each other directly, it would require two things - knowledge of the
  22. underlying message-passing interface (as opposed to the Unix system call
  23. library), and some measure of security (who can send who a process, etc.).
  24.  
  25. In theory you might construct another user process (like a network license
  26. server, say) that would be modelled after MM/FS, but you would probably 
  27. run it as part of the third layer, to avoid the problems above.
  28.  
  29. If you're looking for more general IPC, you might consider implementing
  30. one of the more popular Unix mechanisms in terms of the message-passing
  31. interface rather than exposing that directly - it would have the advantage
  32. of portability, and would probably provide a better general framework
  33. than the message-passing calls.
  34.  
  35.                     larry...
  36.  
  37. -- 
  38. Mail System (MMDF)
  39.