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

  1. Path: sparky!uunet!wupost!csus.edu!netcom.com!netcomsv!terapin!paulk
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: IPC and shared memory
  5. References: <Jean-Guy_Speton.056u@tvbbs.wimsey.bc.ca>
  6. Message-ID: <paulk.317w@terapin.com>
  7. Date: 31 Dec 92 20:16:40 PST
  8. Organization: BBS
  9. Lines: 21
  10.  
  11. > I am looking for information on inter-process communications (IPC)
  12. > and shared memory functions.  Do the Amiga libraries have any
  13. > functions along these lines?
  14.  
  15. Sure, there's PutMsg() eh.
  16.  
  17. > The reason I'm asking is I intend on writing a multi-line door, but
  18. > 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
  20. > all seem as if they will become extremely slow and inefficient with
  21. > more than a few lines.
  22.  
  23. Last time I messed around with a multiplayer game on a mainframe, the
  24. way it was done, which worked pretty well, was to have an area of
  25. memory that all the processes knew about, accessed through a locking
  26. mechanism to protect crucial sections of code.  The way to do this
  27. under AmigaDOS is with a named SignalSemaphore.  Tasks can arbitrate
  28. access to the data by taking locks on the semaphore, and the process
  29. of finding the semaphore by name allows the different tasks to all
  30. get pointers to the same piece of memory, which the semaphore happens
  31. to be the first item in.
  32.