In this case, a logical lock (not a physical database lock) is used to flag that a row is in use for a long-term duration.
在本方案中,通过逻辑锁(而不是物理锁)来对在较长时间中使用的数据行进行标记。
In some scenarios, a longer term "logical lock" may need to be held to prevent changes to data that is presently being worked on by a user.
在某些场景中,可能需要长时间的“逻辑锁”以防止对某个用户正在使用的数据进行更改。
When this happens, the thread failing to acquire the lock is put into a logical queue of lock contenders for the object.
当发生这种情况时,没有获得锁的线程被置于对象的锁争用者的一个逻辑队列中。
应用推荐