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

Home -> Community -> Usenet -> c.d.o.tools -> Re: What's the " latch "

Re: What's the " latch "

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 6 Nov 2000 19:28:53 -0000
Message-ID: <973535535.4611.0.nnrp-04.9e984b29@news.demon.co.uk>

Don't forget that you can queue for a lock, so it's first come , first served.

With a latch, you grab for it, and if you miss it someone else may get it before
you next try to grab. There is no queuing mechanism for latches.

--

Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Practical Oracle 8i:  Building Efficient Databases
Publishers:  Addison Wesley Longman
Book bound date now 1st Dec 2000

andrewweb wrote in message
<973507018.23110.0.nnrp-04.c30bdde2_at_news.demon.co.uk>...

>A latch is an internal Oracle mechanism used to protect data structures in
>the SGA from simultaneous access. Atomic hardware instructions like
>TEST-AND-SET are used to implement latches. Latches are more restrictive
>than locks in that they are always exclusive. Latches are never queued, but
>will spin or sleep until it obtains a resource or times out.
>
>"Trister Yang" <jonathan_at_ms35.url.com.tw> wrote in message
>news:8u53l2$2du$1_at_news.seed.net.tw...
>> I have read in oracle concept, but I really don't know what's the
>> "latch" mean?
>>
>> I will appreciate for any reply!
>>
>
>
Received on Mon Nov 06 2000 - 13:28:53 CST

Original text of this message

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