From: duke@annwn.iscp.bellcore.com (Duke Robillard)
Subject: msem_lock?
Date: 1996/03/22 [thread overview]
Message-ID: <DUKE.96Mar22130112@annwn.iscp.bellcore.com> (raw)
I've just come across msem_lock() and company in AIX (IBM's UNIX,
for those not in comp.unix.aix). They are apparently some kind
of fast semaphore, implemented by setting/testing a value in shared
memory (either mmap or shmget shared memory).
I've never seen these before--does anyone know where they came
from? The doc page mentions OSF's references, and the .h file
has references to Mach and BSD. They're in the same .h as mmap()
(mman.h),
Does anyone know how they work? Like, does msem_lock() spin if
the value is set already, or does it go to sleep (maybe using
msleep()/mwakeup())?
Thanks in advance.
--
Duke Robillard, duke@iscp.bellcore.com
next reply other threads:[~1996-03-22 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-22 5:00 Duke Robillard [this message]
1996-03-23 5:00 ` msem_lock? Jens-Uwe Mager
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox