Question about LWLockAcquire's use of semaphores instead of spinlocks

Robert E. Bruccoleri <bruc@stone.congenomics.com>

From: "Robert E. Bruccoleri" <bruc@stone.congenomics.com>
To: pgsql-hackers@postgresql.org
Date: 2002-07-27T01:46:30Z
Lists: pgsql-hackers
On SGI multiprocessor machines, I suspect that a spinlock
implementation of LWLockAcquire would give better performance than
using IPC semaphores.  Is there any specific reason that a spinlock
could not be used in this context?

+-----------------------------+------------------------------------+
| Robert E. Bruccoleri, Ph.D. | email: bruc@acm.org                |
| P.O. Box 314                | URL:   http://www.congen.com/~bruc |
| Pennington, NJ 08534        |                                    |
+-----------------------------+------------------------------------+