Article View: comp.os.os2.programmer
Article #2448Making a non exclusive semaphore (like on Unix)
From: Christophe Wolfhugel
Date: Sun, 10 Mar 1991 15:14
Date: Sun, 10 Mar 1991 15:14
9 lines
939 bytes
939 bytes
Is there any mechanisme similar to Unixes' semaphores, ie I'd like to get a semaphore with units: - one thread increments it (so never blocking) - another thread uses units and gets blocked only when the counter is 0. (it's for managing a packet layer window in a comm package). -- Christophe Wolfhugel (on irc: Zolf) | Email: wolf@grasp1.univ-lyon1.fr Listserv admin at fifi.univ-lyon1.fr | Fax: (+33) 72 44 08 00
Technical Details
Message-ID:
<18131@milton.u.washington.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!ogicse!milton!grasp1.univ-lyon1.fr!wolfShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!uwm.edu!ogicse!milton!grasp1.univ-lyon1.fr!wolf From: wolf@grasp1.univ-lyon1.fr (Christophe Wolfhugel) Newsgroups: comp.os.os2.programmer Subject: Making a non exclusive semaphore (like on Unix) Keywords: semaphore, counter, exclusive Message-ID: <18131@milton.u.washington.edu> Date: 10 Mar 91 15:14:32 GMT Sender: news@milton.u.washington.edu Organization: INSA Departement Informatique, Lyon, France Lines: 9