The thread will only release the lease if another thread attempts to acquire the lock.
如果另一个线程在尝试获取锁,那么循环线程只需要释放契约就可以了。
Biasing a lock to a thread means that the thread is not required to release the lease on the lock.
将锁偏向于一个线程,意味着该线程不需要释放锁的契约。
To acquire the lease the thread is required to execute an expensive atomic instruction.
为了获得这份契约,线程必须执行一个代价昂贵的原子指令。
应用推荐