The transaction that a locked resource is associated with is said to hold or own the lock.
我们称与被锁定的资源关联的事务持有或拥有该锁。
One common problem is a deadlock (a "deadly embrace"), in which programs get stuck waiting for each other to release a locked resource.
死锁(“抱死,deadly embrace”)是常见的问题,在这种情形下,程序会因等待对方释放被加锁的资源而无法继续运行。
应用推荐