I found three cases when a lock on a resource is released:
1) wait() method;
2) get an exception;
3) thread complete its execution
Are there other cases?
I found three cases when a lock on a resource is released:
1) wait() method;
2) get an exception;
3) thread complete its execution
Are there other cases?