Hi there
Can anyone explain what is meant by recursive locking in Java?
Many thanks
Hi there
Can anyone explain what is meant by recursive locking in Java?
Many thanks
Have a look at this question. It also mentions Java locking (which is always recursive).
recursive locking in java means the same thread can lock the same mutex object twice and won't deadlock
Intrinsic locks in Java are reentrant. Recursive locking is the single method (correct me if I'm wrong) to ensure "hand-over-hand" locking using intrinsic locks.