[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Internal libc lock interface
From: |
Marcus Brinkmann |
Subject: |
Re: Internal libc lock interface |
Date: |
Thu, 21 Jun 2001 12:07:59 +0200 |
User-agent: |
Mutt/1.3.18i |
On Thu, Jun 21, 2001 at 01:56:28AM -0400, Igor Khavkine wrote:
> In the former case, how do I deal with
> rwlocks (what are these btw?)
A read write lock is like a file lock with LOCK_SH and LOCK_EX. Acquiring
the reader lock locks out writers, and acquiring the writer lock locks out
everybody. So readers can run in parallel, while writers are exclusive.
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de