When two threads contend for a lock, one of them will get the lock and the other will have to block until the lock is available.
当两个线程竞争同一个锁时,其中一个会得到锁,另一个不得不阻塞,直到锁可用。
You might recall the graphs from last month's column showing how throughput can drop dramatically once multiple threads contend for a built-in monitor lock using synchronization.
您可以回想上月专栏中的图,该图显示了一旦多个线程使用同步竞争一个内置监视器,吞吐量将如何大幅度下降。
The simulation is not really interested simultaneously in all the customers that will shop during a day, but only in the ones who contend for checkout aisles at the same time.
实际上模拟并不会同时对一天内将要购物的所有顾客感兴趣,而是只对那些要同时争用付款通道的顾客感兴趣。
Moreover, seeking for elk was likened to contend for the throne, for the big and tall male elk symbolized the emperor.
雄麋魁伟高大,古代人以雄麋象征帝王,以“逐鹿中原”譬喻争夺王位。
He put together this great team, he's made several incredible trades, he drafted extremely well and he's helped put us into position to contend for a championship.
他组建了这支伟大的球队,他完成了几桩难以置信的交易,他选秀选的很好,他帮助我们重返到夺冠的行列。
Without its veterans, Paul and Morgan Hamm, the American team wanted to prove that it could contend for a medal.
没有了老将Paul和Morgan兄弟,美国队仍想证明他们取得奖牌的实力。
For I will not contend for ever, neither will I be always wroth: for the spirit should fail before me, and the souls which I have made.
我必不永远相争,也不长久发怒。恐怕我所造的人与灵性,都必发昏。
For I will not contend for ever, neither will I be always wroth: for the spirit should fail before me, and the souls which I have made.
我必不永远相争,也不长久发怒。恐怕我所造的人与灵性,都必发昏。
应用推荐