Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!jade!ucbvax!CORY.BERKELEY.EDU!dillon
From: dillon@CORY.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga
Subject: Re: Spawning tasks which draw . . .
Message-ID: <8712081929.AA17657@cory.Berkeley.EDU>
Date: Tue, 8-Dec-87 14:29:12 EST
Article-I.D.: cory.8712081929.AA17657
Posted: Tue Dec  8 14:29:12 1987
Date-Received: Sun, 13-Dec-87 12:57:15 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 18


    Assumptions:  PopCLI-like program where child and parent are in the
    same segment.  Where Parent must be able to kill the child and know
    exactly when the child no longer exists.

	Parent spawns child at low priority
	Child runs
	Parent wants to kill child:
	    Parent sends child a prearranged signal and increases child's
	     priority.  Parent then Waits for a reply.
	    Child sends Parent a prearranged signal when it is ready to die
	    Child does a Wait(0).
	    Parent kills child. (rather than child kills itself).

    As far as RemTask goes, it doesn't care if the task in question is 
    waiting or running.... or in the middle of a critical library call!

			-Matt