-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Zac,
> 
> Thanks.  This was very helpful.
> 
> One clarification question.  Does a Named lock prevent a 
> same-named  thread
> within the session or application(on a single server?)?

Well...  I'm not quite sure what you're asking.

The three scoped locks and any named lock are completely separate
beasts.  If you have two threads that hit the same named lock, one of
them will block until the other is done.  If you have session,
application, or server locks going on at the same time, that won't
effect the named lock in any way, nor will the named lock affect the
scoped locks.

Basically:
* Two named locks with the same name will affect each other.
* Two session locks in the same session will affect each other.
* Two application locks in the same application will affect each
other.
* Two server locks will affect each other.
* Any other possible combination, and the two locks won't even know
the other one exists.

Make sense?

Best regards,
Zac Bedell


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
Comment: Please use PGP!

iQA/AwUBOpV7G6vhLS1aWPxeEQIkRQCfa4VAxeyKKCnxNyQJkoi8NS+YCt4AoKMm
riKVynfg396liGRNk69NZ3YS
=bHQK
-----END PGP SIGNATURE-----


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to