Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!egrunix!cogswell From: cogswell@egrunix.UUCP (Dan Cogswell) Newsgroups: comp.sys.amiga.tech Subject: Re: Exec questions... Message-ID: <220@egrunix.UUCP> Date: 26 Oct 89 12:58:12 GMT References: <218@egrunix.UUCP> <8278@cbmvax.UUCP> Reply-To: cogswell@unix.secs.oakland.edu (Dan Cogswell) Organization: Oakland University, Rochester, MI Lines: 41 In article <8278@cbmvax.UUCP> valentin@cbmvax.UUCP (Valentin Pepelea) writes: >Use semaphores, signalSemaphores to be exact, because that is the only "clean" >way to do it. If this is true, how are semaphores implemented?? :-) I was informed of a cleaner way of doing it using Wait() and Signal(). To block a process, I do this: FindTask(NIL) AllocSignal() put these things into a Node AddTail(mylist,mynode) Wait(mask). To wake-up a process, I do this: RemHead(mylist) Signal(mynode.task,mynode.signal) CleanThingsUp() (Any similarities to real code purely coincidental) >Just what will happen to your Monitors when the multiprocessing Amiga XMP >comes out? Well, if I knew what an "Amiga XMP" was, maybe I could answer that question! :-) Care to fill us in?? Actually, this is a project for a Grad operating systems class I have (BTW, I'm undergradute and only a junior). I may develop it into a shared library so all the world can benefit from my headaches. :-) >Valentin ============================================================================ Dan Cogswell "Gangster Fun -- It's the beat (313)625-3234 that you can wig-out to..." INTERNET: cogswell@unix.secs.oakland.edu UUCP: cogswell@egrunix.UUCP ============================================================================