Question
Which lock causes a waiting thread to repeatedly test the lock instead of sleeping?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Spinlock
Explanation:
A spinlock keeps a waiter active in a loop until the lock becomes available.
It is appropriate mainly when the expected wait is short and a processor is available.
Leave a Reply