🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Question about ReleaseSemaphore()

#2386
From: Panzer, John Robert
Date: Wed, 29 Nov 1989 05:10
18 lines
1277 bytes
I'm trying to implement a low-overhead shared (read) lock using
signal semaphores, and I've come up with a way that will work
if several tasks can effectively share ownership of a semaphore.
So, my question is: 

What happens if a task ReleaseSemaphore()'s a semaphore which another
task had previously ObtainSemaphore()'d?  The semaphore structure
has a field for the owner of the semaphore; would changing this field 
prior to the release be necessary or desirable? 

Thanks in advance,


==========================================================================
| John Panzer           | University of California, Santa Barbara        |
| panzer@cornu.ucsb.edu |        SCHOOL OF COMPUTER VIOLENCE             |  
==========================================================================
Technical Details
Message-ID: <3156@hub.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!helios.ee.lbl.gov!ucsd!hub!tomato!panzer

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!helios.ee.lbl.gov!ucsd!hub!tomato!panzer
From: panzer@tomato.ucsb.edu (Panzer, John Robert)
Newsgroups: comp.sys.amiga.tech
Subject: Question about ReleaseSemaphore()
Keywords: ReleaseSemaphore
Message-ID: <3156@hub.UUCP>
Date: 29 Nov 89 05:10:41 GMT
Sender: news@hub.UUCP
Reply-To: panzer@cornu.ucsb.edu (Panzer)
Organization: University of California, Santa Barbara
Lines: 18