How can I call notify() in Java without blocking?

Posted by Horcrux7 on Stack Overflow See other posts from Stack Overflow or by Horcrux7
Published on 2010-03-29T14:18:48Z Indexed on 2010/03/29 15:03 UTC
Read the original article Hit count: 133

Filed under:
|

Are there a replacement for the follow Java code that will not block? I want only ping a possible waiting thread. I does not want change any on a possible thread that is already in the monitor.

synchronized( monitor ) {
    monitor.notify();
}

© Stack Overflow or respective owner

Related posts about java

Related posts about threads