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 -> Re: How does spin count really works

Re: How does spin count really works

From: <ctcgag_at_hotmail.com>
Date: 09 Nov 2004 17:51:11 GMT
Message-ID: <20041109125111.221$g2@newsreader.com>


bchorng_at_yahoo.com (Bass Chorng) wrote:
> I have a question on how spin counting really works.
>
> Lets assume the default of 2000 on _spin_count. So a latch
> miss session starts kernel code loop for 2000 times and try
> it again.

No, I think it just tries again, upto 2000 times.

> My question is does it check again only after completing the 2000
> loops or it will stop in the middle if the latch is available before
> completing the loop ?
>
> If it is the latter, how does it know that latch is available halfway ?

Because the latch is the thing that it is spinning on.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB
Received on Tue Nov 09 2004 - 11:51:11 CST

Original text of this message

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