On 10/25/07, Gaulin, Mark <[EMAIL PROTECTED]> wrote: > > A refinement would be to only lock if the application data was not > defined (so, test for it and return if it is defined) and, within the > lock, to retest for it being defined (just as you have now). The test > within the lock is to avoid a race condition where many clients hit at > once before the data is loaded, and all of them hit the cflock and > block. One of them "wins" the lock and loads the data, then each of the > other clients gets the lock and can see that they have nothing to do.
That makes sense... I think I'll do that and see how it goes. -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292057 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

