synchronised()
{
//line1
//line2
// line: waiting indefinitely for DB connection
//line 3
}
How to ensure that other threads get access to these lines and the thread currently deadlocked here, somehow releases the lock?
synchronised()
{
//line1
//line2
// line: waiting indefinitely for DB connection
//line 3
}
How to ensure that other threads get access to these lines and the thread currently deadlocked here, somehow releases the lock?