home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!cbmvax!jesup
- From: jesup@cbmvax.commodore.com (Randell Jesup)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: fork() for AmigaDOS?
- Keywords: fork
- Message-ID: <34671@cbmvax.commodore.com>
- Date: 27 Aug 92 01:17:22 GMT
- References: <1992Aug26.010450.18412@galileo.cc.rochester.edu>
- Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
- Organization: Commodore, West Chester, PA
- Lines: 21
-
- gest_ss@uhura.cc.rochester.edu (Gavin Stark) writes:
- >Is there a AmigaDOS fork() that works like UNIX fork()?
-
- No, that either requires an MMU or requires swapping the two processes
- into the same memory on every task switch.
-
- >Or is there a way to get a 'C' program to spawn a subroutine as a child that
- >runs concurently?
-
- Yes: CreateNewProc(NP_Entry,mysubroutine). (In practice you may
- well have more tags than that.) Also be careful for compiler-related issues
- like forcing the pointer to global data to be loaded on entry to the
- routine (geta4() in Manx, __saveds in SAS).
-
- --
- "Rev on the redline, you're on your own; seems like a lifetime, but soon it's
- gone..." Foreigner
- -
- 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.
-