开发者

Recursive Locking in Java [duplicate]

开发者 https://www.devze.com 2022-12-28 08:37 出处:网络
This question already has answers here: Recursive Lock (Mutex) vs Non-Recursive Lock (Mutex) (8 answers)
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

精彩评论

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

关注公众号