Menu

#58 Thread.interrupt() wakes up the wrong thread

open
5
2009-12-16
2009-12-16
No

Calling Thread.interrupt() on a thread waiting through Object.wait() on an object on which more threads are waiting interrupts the correct threads but fails to wake it up. Instead another of the waiting thread is woken as if Thread.notify() had been called on the object.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB