Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> latches or semaphores

latches or semaphores

From: danisment <danisment_at_yahoo.com>
Date: 13 Nov 2001 06:13:03 -0800
Message-ID: <2c78cfac.0111130613.6fdc613f@posting.google.com>


Hello,

According to my tests, Oracle doesn't use semaphores on latch operations. It's also true in theory since semaphore operations are done in FIFO order, but latches not. Semaphores include atomic test-and-set instructions too. But, using just atomic test-and-set instructions for latches are enough instead of using expensive entire semaphore operations.

what happens if hardwares don't support atomic test-and-set instructions ?

If Oracle doesn't use, how is the latch positing implemented ? Which IPC mechanism is used ? There are two options other than semaphores:

message queues are not solution, becasue they are ordered. I guess posting is done shared memory IPC mechanism.

I would like to be sure about this case to confirm my knowledge. does Oracle use semaphore on latches ?

thanks in advance... Received on Tue Nov 13 2001 - 08:13:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US