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