Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: Task synchronization Message-ID: <8910170556.AA04965@postgres.Berkeley.EDU> Date: 17 Oct 89 05:56:43 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 19 Easy. The close down sequence can work like this: MainTask: Signal SubTask SubTask: if (cleanupsignal) { Cleanup(); Forbid(); Signal(MainTask, whatever) Wait(0); } You can even get rid of the Forbid()... the maintask then simply RemTask()s the subtask. This kills the subtask in whatever it's doing (which is nothing... a Wait(0)). -Matt