Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #360

Re: Mutex or reader writer lock

From "Chris M. Thomasson" <cristom@charter.net>
Newsgroups comp.programming.threads
References <b10602ad-9b3b-485e-bb1f-66b0e1b3adce@h38g2000pro.googlegroups.com> <ittper$joe$1@node2.news.atman.pl>
Subject Re: Mutex or reader writer lock
Message-ID <ZOLMp.17616$5v5.3521@newsfe11.iad> (permalink)
Date 2011-06-23 11:43 -0700

Show all headers | View raw


"Edek" <edek.pienkowski@gmail.com> wrote in message 
news:ittper$joe$1@node2.news.atman.pl...
> On 06/21/2011 12:27 PM, ittium wrote:
[...]
>> I will also appreciate, few lines on pthread reader writer locks
>> implementation. Is is using futex and condition variables ?
>>
>
> I don't know what platform you are referring to, but atomic + futex
> as far as I know (plus bookkeeping of course)

Last time I checked (a couple of years ago), most POSIX rw-locks impls I 
have seen used mutexs and condition variables. They had rather horrible 
performance characteristics... 

Back to comp.programming.threads | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mutex or reader writer lock ittium <ittium@gmail.com> - 2011-06-21 03:27 -0700
  Re: Mutex or reader writer lock David Schwartz <davids@webmaster.com> - 2011-06-21 22:03 -0700
  Re: Mutex or reader writer lock Edek <edek.pienkowski@gmail.com> - 2011-06-23 00:14 +0200
    Re: Mutex or reader writer lock ittium <ittium@gmail.com> - 2011-06-23 06:04 -0700
    Re: Mutex or reader writer lock "Chris M. Thomasson" <cristom@charter.net> - 2011-06-23 11:43 -0700
      Re: Mutex or reader writer lock ittium <ittium@gmail.com> - 2011-06-24 02:26 -0700
        Re: Mutex or reader writer lock Edek <edek.pienkowski@gmail.com> - 2011-06-24 12:02 +0200
          Re: Mutex or reader writer lock "Chris M. Thomasson" <cristom@charter.net> - 2011-06-29 13:46 -0700
            Re: Mutex or reader writer lock "Chris M. Thomasson" <cristom@charter.net> - 2011-06-29 14:26 -0700
              Re: Mutex or reader writer lock "Chris M. Thomasson" <cristom@charter.net> - 2011-06-29 20:30 -0700

csiph-web