adaptive spinning(自适应自旋锁) :用来自旋锁优化线程如何等待某件事的发生,因为如果事件能很快就发生的话,自旋要比让线程阻塞再唤起的代价小很多(因为这会发...
基于32个网页-相关网页
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.
应用推荐