Question
Which lock allows the same owning thread to acquire it repeatedly without self-deadlocking?
Select an option. Your answer will be checked instantly.
Correct Answer: A. Reentrant lock
Explanation:
A reentrant lock records the owner and an acquisition count for repeated locking by that owner.
The lock becomes available to others only after a matching number of releases.
Leave a Reply