Pattern authors can exercise varying degrees of control over deployment by choosing to lock deployment time parameters, ensuring fixed values for every deployment.
模式作者可以尝试对部署进行不同程度的控制,选择锁定部署时间参数,确保为每种部署使用固定的值。
With adaptive spinning the duration of the spin is not fixed anymore, but determined by a policy based on previous spin attempts on the same lock and the state of the lock owner.
自适应意味着自旋的时间不再固定了,而是取决于一个基于前一次在同一个锁上的自旋时间以及锁的拥有者的状态。
And the location of every row is in a fixed location, allowing for techniques such as lock escalation when too many fine-grained locks would otherwise be needed.
并且由于每一行都被存储在固定的位置,使得锁升级这样的技术得以实现,以避免过多细粒度锁。
应用推荐