Re: problem using semaphores - Mailing list pgsql-hackers

From Neil Conway
Subject Re: problem using semaphores
Date
Msg-id 1178654284.6034.19.camel@goldbach
Whole thread Raw
In response to problem using semaphores  ("Raja Agrawal" <raja.agrawal@gmail.com>)
List pgsql-hackers
On Wed, 2007-09-05 at 01:07 +0530, Raja Agrawal wrote:
> We are using the following piece of code for updating a list
> synchronously i.e. no two threads would update the list at a time.

Do you mean threads or processes?

> Is the following way of using semaphores not correct in the postgres
> environment?

Why can't you use LWLocks?

-Neil




pgsql-hackers by date:

Previous
From: "Raja Agrawal"
Date:
Subject: problem using semaphores
Next
From: Jeff Davis
Date:
Subject: savepoints and upgrading locks