While no one would ever directly use the idiom in Listing 1, this code is very similar to the case where the lock associated with a synchronized block can be proven to be a thread-local variable.
虽然没有人会直接使用清单1中的形式,但是与这个代码非常类似的情况是:可以证实与synchronized块关联的锁是一个线程本地变量。
1:In the old days the bell Telephone Company became the biggest in the world by buying up a lot of local phone companies, lock, stock and barrel and merging them into one giant corporation.
他说:Bell电话公司当初收购了许多地方电话公司,把这些小公司统统合并成一家庞大的企业,Bell公司这才跃居世界首位。 Bell公司一古脑儿地网罗了那些小公司,以成为规模巨大的企业,所以这里的 lock, stock and barrel 显然解释“统统地、一古脑儿地。”
You will enter east lock at 0145 hours local time, when all eastbound vessels have passed your vessel. Out.
你船将在当地时间0145时,所有东行船对遇并通过你船后进入东船闸,完毕。
应用推荐