Re: problem using semaphores

From: Neil Conway <neilc(at)samurai(dot)com>
To: Raja Agrawal <raja(dot)agrawal(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem using semaphores
Date: 2007-05-08 19:58:04
Message-ID: 1178654284.6034.19.camel@goldbach
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2007-05-08 20:41:49 savepoints and upgrading locks
Previous Message Raja Agrawal 2007-05-08 19:37:29 problem using semaphores