home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ornl!rsg1.er.usgs.gov!darwin.sura.net!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!cbmvax!jesup
- From: jesup@cbmvax.commodore.com (Randell Jesup)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: How to program multi-threaded programs on Amiga ?
- Message-ID: <37207@cbmvax.commodore.com>
- Date: 22 Nov 92 02:32:22 GMT
- References: <36604@cbmvax.commodore.com> <RNlXr*DG7@garfield.fipnet.fi> <1992Nov6.233056.24803@jato.jpl.nasa.gov>
- Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
- Organization: Commodore, West Chester, PA
- Lines: 21
-
- In article <RNlXr*DG7@garfield.fipnet.fi> vsaari@garfield.fipnet.fi (Ville Saari) writes:
- >Randell Jesup (jesup@cbmvax.commodore.com) wrote:
- >: It's farily easy to start a subroutine as a process under 2.0 using
- >: CreateNewProc() with NP_Entry. There are a few things to watch out for
- >: (setting up global data pointers, and handling of library bases), but it's
- >: pretty easy. Make sure the sub-process exits before the main process!
-
- >What is the right way for sub-process to exit and how can the main process
- >be absolutely sure the sub-process has exited?
-
- The two normal methods would be an unbalanced Forbid() (similar to
- what all WB-launched processes use), or under 2.0x or later you can use
- NP_ExitCode/NP_ExitData to signal or send a message (or whatever) to the
- parent process.
-
- --
- To be or not to be = 0xff
- -
- Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
- {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
- Disclaimer: Nothing I say is anything other than my personal opinion.
-