[Info-vax] K-mutex

Bob Koehler koehler at eisner.nospam.encompasserve.org
Thu Dec 15 09:07:12 EST 2011


In article <7c16fc0a-4f6a-4f56-b170-448c721b00b4 at p16g2000yqd.googlegroups.com>, Pierre <pierre.bru at gmail.com> writes:
> 
> the easiest way to emulate semaphores with the DLM is to use a lock
> with a value block. this method is not fault-tolerant but neither are
> semaphores (if a process crash before freeing the resource slot, this
> slot may be totally  lost).

   An implementation that doesn't wind down when a process crashes is
   poor and incomplete.  Certainly VMS would release any locks held
   by the process.  More sophisticated handling could be entered into
   an image exit handler.

> 
> so, depending on what you want to do, one method or the other may fit
> your problem.
> 
> BTW, what is c.o.v. ?


   comp.os.vms



More information about the Info-vax mailing list