Read lock table information programmatically; remove locks; query and adjust lock table parameters.
An important feature of any multi-process system is concurrency control, the ability to prevent different processes from changing a specific element of data at the same time, resulting in corruption. Thus ObjectScript
, Caché SQL
, Caché MVBasic
, and Caché Basic
each provide commands for working with locks
, which you use for concurrency control.
class provides a way to control concurrent access to objects, namely, the concurrency
argument to %OpenId()
and other methods of this class. These methods ultimately use the ObjectScript LOCK command. All persistent objects inherit these methods.
In addition, InterSystems provides the following tools:
Enables you to read lock table information. This class provides details and examples.
Enables you to remove locks. Also enables you to query and adjust lock table parameters. This class provides methods like the following: