home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18198 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.1 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: <1993Jan4.220638.12229@jato.jpl.nasa.gov>
  6. Message-ID: <paulk.33x4@terapin.com>
  7. Date: 5 Jan 93 20:31:39 PST
  8. Organization: BBS
  9. Lines: 14
  10.  
  11. > Declare the Signal Semaphore structure itself or a pointer to it in
  12. > your main program's data area and then restore that area in any sub
  13. > tasks/pro-cesses that wish to gain access to the semaphore.
  14.  
  15. This only works if all processes that access the semaphore all run
  16. off the same SegList.  This means that you have to launch the program
  17. once, and yet have it spawn multiple processes running the same code,
  18. internally, in response to different users.  If you're going to do
  19. that, you might as well implement all the good stuff in a single
  20. server process which doesn't need any internal semaphoring anyway.
  21.  
  22. Using a named semaphore makes things way simpler, if you really do
  23. want to use concurrent processes and not a centralized server
  24. bureaucrat-process.
  25.