Article View: comp.sys.amiga.tech
Article #333Re: Does anyone have a code example for CreateProc function of AmigaDos?
From: Randell Jesup
Date: Tue, 04 Jul 1989 01:04
Date: Tue, 04 Jul 1989 01:04
21 lines
1646 bytes
1646 bytes
In article <17336@gryphon.COM> rickf@pnet02.cts.com (Rick Flower) writes:
>I'm working on a program that needs the ability to spawn 8 different tasks
>(well, ok, processes!) and use the least amount of memory as possible. What I
>thought that I would do is LoadSeg the actual program that needs to be spawned
>8 times and then CreateProc() the same code 8 times. I think it will work, as
>long as I make the program that was LoadSeg'd allocate the memory it needs
>instead of using assembly time data areas. Perhaps this will also not work?
>I don't know at this point, but I'm basically looking for some code that shows
>examples of the CreateProc function and how it will interact with the parent
>process, in either Assembly or "C"...
What you want will work, so long as you don't use any globals, unless
they're referenced like you would in a "pure" program - in an allocated data
area via a base register. Lattice cres.o startup module does this automatically
when linked into a program.
--
Randell Jesup, Keeper of AmigaDos, Commodore Engineering.
{uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
Common phrase heard at Amiga Devcon '89: "It's in there!"
Technical Details
Message-ID:
<7207@cbmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cbmvax!jesupReferences:
<17336@gryphon.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cbmvax!jesup From: jesup@cbmvax.UUCP (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: Does anyone have a code example for CreateProc function of AmigaDos? Message-ID: <7207@cbmvax.UUCP> Date: 4 Jul 89 01:04:15 GMT References: <17336@gryphon.COM> Reply-To: jesup@cbmvax.UUCP (Randell Jesup) Organization: Commodore Technology, West Chester, PA Lines: 21