标签: java multithreading synchronization locking deadlock
synchronised() { //line1 //line2 // line: waiting indefinitely for DB connection //line 3 }
如何确保其他线程可以访问这些行并且此处的线程当前死锁,以某种方式释放锁?