Using different semaphore for locking

Поиск
Список
Период
Сортировка
От flyusa2010 fly
Тема Using different semaphore for locking
Дата
Msg-id AANLkTinq+uuvDitaHoxf_4XY7b4nSCS1_+S9Z1+Y+oKW@mail.gmail.com
обсуждение исходный текст
Ответы Re: Using different semaphore for locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I found that postgres uses different semaphore system call on some different operating systems.
For example, I found that on linux, System V semaphore (semop etc.) is used to implement locking, while on Darwin, POSIX semaphore (sem_wait, sem_post etc.) is used.
linux and Darwin support both System V and POSIX semaphores, i'm wondering why postgres implement locking using different types of semaphore system call. Is there any performance or semantic issue on different OSes? 

Thnaks!

В списке pgsql-hackers по дате отправления:

Предыдущее
От: flyusa2010 fly
Дата:
Сообщение: what are clog and xlog?
Следующее
От: David Fetter
Дата:
Сообщение: Re: new patch of MERGE (merge_204) & a question about duplicated ctid