home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17993 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  2.1 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!news.cs.hut.fi!too
  2. From: too@laphroaig.cs.hut.fi (Tomi Ollila)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: IPC and shared memory
  5. Message-ID: <TOO.92Dec31145940@laphroaig.cs.hut.fi>
  6. Date: 31 Dec 92 14:59:40 GMT
  7. References: <Jean-Guy_Speton.056u@tvbbs.wimsey.bc.ca>
  8. Organization: /u/users10/too/.organization
  9. Lines: 29
  10. NNTP-Posting-Host: laphroaig.cs.hut.fi
  11. In-reply-to: Jean-Guy_Speton@tvbbs.wimsey.bc.ca's message of 30 Dec 92 16:17:20 PST
  12.  
  13. In article <Jean-Guy_Speton.056u@tvbbs.wimsey.bc.ca> Jean-Guy_Speton@tvbbs.wimsey.bc.ca (Jean-Guy Speton) writes:
  14.  
  15.    I am looking for information on inter-process communications (IPC) and
  16.    shared memory functions.  Do the Amiga libraries have any functions along
  17.    these lines?  The reason I'm asking is I intend on writing a multi-line
  18.    door, but have questions as to how the different processes of the door will
  19.    communicate with one another.  I have a few ideas in mind, but they all
  20.    seem as if they will become extremely slow and inefficient with more than a
  21.    few lines.
  22.  
  23.    If anyone can provide any relevant information, I will be forever grateful.
  24.  
  25.  
  26. Are you familiar w/ exec messages & ports. Read about those issues from Rom
  27. Kernel Reference Manual, Libraries (& D Aevices), second or third edition.
  28. read also section about exec libraries (Chapter 18 in RKM lib 3rd ed.)
  29.  
  30. I'd imagine that the most efficient results are achieved by using shared
  31. libray, and returning different base pointer for each OpenLibrary() call.
  32. This way library functions can put process spesific infromation in library
  33. base data area and have one (or more) global variables to access and
  34. mainpulate common information. Library functions are executed in caller's
  35. context, so your functions can easily allocate signals and messageports for
  36. IPC. Store that data wisely to commonly accessed data structures and youu
  37. achieve fast IPC. Using Pete Goodeve's ppipc.library along w/ your
  38. functions makes your code more safe against sudden deaths (without closing
  39. your library) of some process using your library.
  40.  
  41. Tomi
  42.