---
title: "What are the types of lock supported by CFLOCK>?"  
description: "What are the types of lock supported by CFLOCK>?"  
author: "James Smith"  
published: 2011-05-17  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/931/what-are-the-types-of-lock-supported-by-cflock  
category: "cold fusion"  
tags: ["cold fusion"]  
reading_time: 1 minute  

---

# What are the types of lock supported by CFLOCK>?

<CFLOCK> supports two different types of lock, EXCLUSIVE and READONLY. An EXCLUSIVE lock prevents access by any other code and READONLY is more of a flag that marks a block of code that will only be executed if there is no active EXCLUSIVE lock.

## Answers

### Answer by James Smith

<CFLOCK> supports two different types of lock, EXCLUSIVE and READONLY. An EXCLUSIVE lock prevents access by any other code and READONLY is more of a flag that marks a block of code that will only be executed if there is no active EXCLUSIVE lock.


---

Original Source: https://www.mindstick.com/interview/931/what-are-the-types-of-lock-supported-by-cflock

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
