"Mendola Gaetano" <mendola(at)bigfoot(dot)com> writes:
> What about use the same algorithm used in ethernet when a collision is
> detected?
Random backoff is what Rod suggested, but I don't care for the ethernet
method in detail, because it allows for only a fairly small number of
retries before giving up. It's okay for an ethernet to drop packets
under load ... it's not okay for us to fail to acquire a spinlock.
regards, tom lane