对典型的忙等待锁算法进行详细的分析和比较,找到了这些算法的优点及其在使用上的限制,并对锁算法的选择进行了推荐。
Finally, by particular analyzing and comparing the typical busy-waiting lock algorithm, it finds out the merit and the discipline in use, and recommends the choice of lock algorithm.
如果锁不可用,线程将忙等待该锁,直到其可用为止。
If the lock is not available, the thread busy-waits on the lock until it is available.
应用推荐