home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16205 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.6 KB

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