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


Groups > comp.lang.python > #4261

Re: Read-write lock for Python

References <bd326cd8-8d3d-419d-858b-016f97386b11@gu8g2000vbb.googlegroups.com> <4DB979AB.6020509@sequans.com> <BANLkTinofUuJ5Zpp1ZGwUDLHkcy4c2n+Vg@mail.gmail.com> <20110428135358.52f8e1c1.darcy@druid.net>
Date 2011-04-28 22:26 +0200
Subject Re: Read-write lock for Python
From Geoff Bache <geoff.bache@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.959.1304022409.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Apr 28, 2011 at 7:53 PM, D'Arcy J.M. Cain <darcy@druid.net> wrote:
> On Thu, 28 Apr 2011 19:14:45 +0200
> Geoff Bache <geoff.bache@gmail.com> wrote:
>> On Thu, Apr 28, 2011 at 4:28 PM, Jean-Michel Pichavant
>> <jeanmichel@sequans.com> wrote:
>> > What about
>> >
>> > http://docs.python.org/library/threading.html#lock-objects
>>
>> Those aren't read-write locks. They are basic locks, which don't
>> distinguish between readers and writers. I need to be able to lock
>> between reader and writer operations, without readers locking each
>> other out.
>
> There really isn't any such thing as "read-write" locks.

Did you google it? I even provided the exact search terms to use in my
initial posting. It takes you straight to two standard library patch
proposals and four other solutions, all labelled this way (sometimes
"reader-writer locks" admittedly). That doesn't happen if it isn't a
standard problem.

I'm not looking for general advice on how to solve some specific
problem. I'm asking if anyone knows anything about the relative merits
of the above 6 solutions.

Regards,
Geoff Bache

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Read-write lock for Python Geoff Bache <geoff.bache@gmail.com> - 2011-04-28 07:02 -0700
  Re: Read-write lock for Python Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-04-28 16:28 +0200
  Re: Read-write lock for Python Geoff Bache <geoff.bache@gmail.com> - 2011-04-28 19:14 +0200
  Re: Read-write lock for Python "D'Arcy J.M. Cain" <darcy@druid.net> - 2011-04-28 13:53 -0400
  Re: Read-write lock for Python Geoff Bache <geoff.bache@gmail.com> - 2011-04-28 22:26 +0200
  Re: Read-write lock for Python Ben Finney <ben+python@benfinney.id.au> - 2011-04-29 07:29 +1000
  Re: Read-write lock for Python Ryan Kelly <ryan@rfk.id.au> - 2011-04-29 08:38 +1000
  Re: Read-write lock for Python Geoff Bache <geoff.bache@gmail.com> - 2011-04-29 17:05 +0200

csiph-web