Re: problem using semaphores

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: problem using semaphores
Дата
Msg-id 1178654284.6034.19.camel@goldbach
обсуждение исходный текст
Ответ на problem using semaphores  ("Raja Agrawal" <raja.agrawal@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Raja Agrawal"
Дата:
Сообщение: problem using semaphores
Следующее
От: Jeff Davis
Дата:
Сообщение: savepoints and upgrading locks