home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12735 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.3 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!cbmvax!jesup
  2. From: jesup@cbmvax.commodore.com (Randell Jesup)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: fork() for AmigaDOS?
  5. Keywords: fork
  6. Message-ID: <34671@cbmvax.commodore.com>
  7. Date: 27 Aug 92 01:17:22 GMT
  8. References: <1992Aug26.010450.18412@galileo.cc.rochester.edu>
  9. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  10. Organization: Commodore, West Chester, PA
  11. Lines: 21
  12.  
  13. gest_ss@uhura.cc.rochester.edu (Gavin Stark) writes:
  14. >Is there a AmigaDOS fork() that works like UNIX fork()?
  15.  
  16.     No, that either requires an MMU or requires swapping the two processes
  17. into the same memory on every task switch.
  18.  
  19. >Or is there a way to get a 'C' program to spawn a subroutine as a child that
  20. >runs concurently?
  21.  
  22.     Yes: CreateNewProc(NP_Entry,mysubroutine).  (In practice you may
  23. well have more tags than that.)  Also be careful for compiler-related issues
  24. like forcing the pointer to global data to be loaded on entry to the
  25. routine (geta4() in Manx, __saveds in SAS).
  26.  
  27. -- 
  28. "Rev on the redline, you're on your own; seems like a lifetime, but soon it's
  29.  gone..."  Foreigner
  30. -
  31. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  32. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
  33. Disclaimer: Nothing I say is anything other than my personal opinion.
  34.