Good Algorithm for "Multiple Readers"/"Multiple Writers"
Stephen Croall
scroall@tibco.com
Thu Dec 8 09:57:00 GMT 2005
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]
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 <URL:http://www.unilib.neva.ru/olsc/>
More information about the Pthreads-win32
mailing list