Java reenrantlock unlock throws java.lang.IllegalMonitorStateException

前端 未结 0 1984
天涯浪人
天涯浪人 2021-01-14 17:18

The thread needs to acquire multiple locks before execution, so I put all locks to a list, and iteratively tryLock() them, if the tryLock() success, I add the acquired lock

相关标签:
回答
  • 消灭零回复
提交回复
热议问题