Sean - so if I understand correctly this means that performance benefits of
named locks over scoped locks (as noted in the <cflock> postings on your
blog) are no longer huge?

So in summary for shared scope vars scoped locks are not going to result in
the app taking a performance hit. Named locks are primarily for files or
sections of code that need to single thread - correct?

Johan
--------------------------------------------
Johan Steenkamp
www.assetnow.com
--------------------------------------------


----- Original Message ----- 
From: "Sean A Corfield" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 19, 2003 5:02 AM
Subject: Re: cflock - what does it do? Exactly?


> On Monday, Aug 18, 2003, at 09:32 US/Pacific, Adam Churvis wrote:
> > Think of a SCOPE lock as being kind of like a NAME lock uses the name
> > of the
> > scope as its value, so that lots and lots of code uses the same
> > synchronization "key," then imagine how much more locking contention
> > you are
> > likely to have under load.
>
> Note that the following has changed meaning between CFMX and CFMX 6.1:
>
> <cflock scope="session" type="exclusive">
> ...
> </cflock>
>
> In CFMX (6.0) this would behave as you say, i.e., as if it were a named
> lock, and so it would single-thread for every user.
>
> In CFMX 6.1, this only locks per-session so only multiple requests from
> a single user would be single-threaded.
>
> (I'm not sure how this behaved in CF5 and earlier but the 6.0 behavior
> was considered a bug)
>
> Sean A Corfield -- http://www.corfield.org/blog/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to