ProAnswers.org

What is a lock?

A lock is a variable associated with a data item that describes the status of the item with respect to the possible operations that can be applied to it.