🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1849

Re: Exec questions...

#1849
From: Dan Cogswell
Date: Thu, 26 Oct 1989 12:58
41 lines
1797 bytes
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
============================================================================
Technical Details
Message-ID: <220@egrunix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!egrunix!cogswell
References: <218@egrunix.UUCP> <8278@cbmvax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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