|
Hosted and maintained by Ben Forta. Designed by Trilemetry. |
| Language: | © 2002-2007 Ben Forta. All Rights Reserved | ||
| <Home> <FAQ> <Question> | <About> | ||
Question |
| What is the difference between EXCLUSIVE and READONLY locks? | ||
| <CFLOCK> supports two types of lock, EXCLUSIVE and READONLY. An EXCLUSIVE lock prevents access by any other code. A READONLY lock is not actually a lock, it is more of a flag that marks a block of code that will only be executed if there is no active EXCLUSIVE lock. It is important to use READONLY locks in your code as without them ColdFusion could execute that code even if there were an EXCLUSIVE lock active – ColdFusion would have no way to know that the code should not be executed yet. |
||
Comments |
Add Your Comments |
| <submit question> | ||