As Dave said, my understanding is that the _only_ 100% safe lock is the
scope lock. Yes, this means that even if we are modifying Server.A we
may block Server.B, but stability should win out over speed here.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 14, 2001 10:23 AM
> To: Spectra-Talk
> Subject: RE: Large mod - locking explanation?
>
>
> > Not entirely sure why you've replaced all locking with SERVER
> > rather than named locks. Surely this is likely to significantly
> > increase the chance of contention throughout the application?
> >
> > I'd agree much of the locking throughout Spectra was inconsistent.
> > Just wondering really what the thinking was behind this fairly
> > significant set of modifications.
>
> It has been my understanding, based on what information
> Allaire/MM provided about locking, that you'd have to lock
> the Server scope itself if you're using any variables within
> that scope - that is, if you simply created a name that you
> used whenever accessing one nested structure within the
> Server scope, the lock would be ineffective since other code
> might access other nested structures within the Server scope,
> and what really needed protection was the base structure itself.
>
> I certainly agree that this will increase contention, and
> would be happy to be completely wrong about my understanding
> of locking.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.