This example would deadlock if a single thread were not permitted to lock a lock more than once.
英
美
如果不允许一个线程重入同步锁,那么上面的例子就会发生死锁。
目录
查词历史
英 汉