开发者

Recursive Locking in Java [duplicate]

This question already has answers here: Recursive Lock (Mutex) vs Non-Recursive Lock (Mutex) (8 answers) Closed 6 years ago.

Can anyone explain what is meant by recursive locking in Java?

Many than开发者_Python百科ks


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜