This example would deadlock if a single thread were not permitted to lock a lock more than once.

 
  • 如果不允许一个线程重入同步锁,那么上面的例子就会发生死锁。
今日热词
目录 附录 查词历史