The concept of locking is well established in multi-user environments. File locking prevents multiple users from editing a file at the same time. Database management systems also use locking by allowing different users to access the same records without interference. In a ColdFusion environment, locking is used to explicitly manage the sequence in which concurrent requests are processed. There are generally two reasons to use locks within ColdFusion:
NOTE As of ColdFusion MX, opting not to lock access to shared scopes (SESSION, APPLICATION, and SERVER) will not cause memory corruption. |