Prevent Deadlocks

Deadlocks are locks stuck in a state where multiple locks are waiting for each other to unlock (and so none ever do). Deadlocks are usually caused by nesting locks, and so the way to prevent deadlocks is to ensure that nesting always occurs in the exact same sequence, and that less specific locks occur before more specific locks (so SERVER before APPLICATION, and APPLICATION before SESSION). (Applies to: ColdFusion 4 (or later))

Leave a Reply