当执行绪结束程式码的同步化区块时,锁定会被释放,不管执行绪如何结束该区块。
When the thread exits the synchronized block of code, the lock is released, no matter how the thread exits the block.
当执行绪结束程式码的同步化区块时,锁定会被释放,不管执行绪如何结束该区块。
When the thread exits the synchronized block of code, the lock is released, no matter how the thread exits the block.
应用推荐