The JDK 1.6 introduced adaptive spinning.
JD K 1.6中引入了自适应自旋锁。
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.
自适应意味着自旋的时间不再固定了,而是取决于一个基于前一次在同一个锁上的自旋时间以及锁的拥有者的状态。
应用推荐