On the other hand, if the lock is held for a longer time, spinning is wasteful as the spinningthread consumes CPU without doing anything useful.
另一方面,如果锁被占有很长时间,那么自旋的线程只会消耗CPU而不做任何有用的工作,因此带来浪费。
2
She was spinning white flaxen thread, which ran from her spinning wheel down to a pile around her feet, then on down the slope, like a creek.
她正在纺着白色的亚麻线,线从她的纺轮里跑出来,在她的脚边堆成一堆,然后跑下雪泥地,像一条小溪。
3
If spinning succeeded on that same lock object in the recent history and the thread holding the lock is running, then spinning is likely to succeed again.