From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25401 invoked by alias); 8 Dec 2005 09:57:29 -0000 Received: (qmail 25392 invoked by uid 22791); 8 Dec 2005 09:57:29 -0000 X-Spam-Check-By: sourceware.org Received: from outhub3.tibco.com (HELO outhub3.tibco.com) (63.100.100.166) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Dec 2005 09:57:27 +0000 Received: from na-h-inhub1.tibco.com (na-h-inhub1 [10.106.128.33]) by outhub3.tibco.com (8.12.10/8.12.9) with ESMTP id jB89vLhD029537 for ; Thu, 8 Dec 2005 01:57:25 -0800 (PST) Received: from NA-PA-VBE01.na.tibco.com (na-pa-be01.tibco.com [10.106.136.121]) by na-h-inhub1.tibco.com (8.12.10/8.12.10) with ESMTP id jB89vLNQ026917 for ; Thu, 8 Dec 2005 01:57:21 -0800 (PST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Good Algorithm for "Multiple Readers"/"Multiple Writers" Date: Thu, 08 Dec 2005 09:57:00 -0000 Message-ID: From: "Stephen Croall" To: X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2005/txt/msg00130.txt.bz2 Thanks, but the POSIX read/write interface supports a single writer vs. multiple readers. I'm after multiple writers & readers i.e. multiple threads can perform writing but readers must wait and vice versa. Steve. -----Original Message----- From: Rustam T. Usmanov [mailto:rustam@unilib.neva.ru]=20 Sent: 08 December 2005 09:54 To: Stephen Croall Subject: Re: Good Algorithm for "Multiple Readers"/"Multiple Writers" On Thu, 8 Dec 2005, Stephen Croall wrote: > Is anyone aware of whether POSIX implements this type of lock? pthread_rwlock ? See http://www.opengroup.org/onlinepubs/009695399/functions/pthread_rwlock_i nit.html -- Rustam Usmanov, systems engineer Institute of Consortia Library Information Systems, St.Petersburg State Polytechnic University Address: 29, Politekhnitcheskaya str., St.Petersburg, 195251, Russia Tel/fax: +7 812 552 7654