You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.
The Promise class needs the get() method to check to see if the value has already been set BEFORE calling wait(). If no thread is waiting when the other thread calls calls notifyAll(), then it's a NOP and the wait()ing thread will wait forever. Classic race condition. I sometimes see an RPC call that waits forever because the response comes back faster than the client thread can call enter get() and call wait().
The text was updated successfully, but these errors were encountered:
The Promise class needs the get() method to check to see if the value has already been set BEFORE calling wait(). If no thread is waiting when the other thread calls calls notifyAll(), then it's a NOP and the wait()ing thread will wait forever. Classic race condition. I sometimes see an RPC call that waits forever because the response comes back faster than the client thread can call enter get() and call wait().
The text was updated successfully, but these errors were encountered: