Do spurious wakeups in Java actually happen?
The Wikipedia article on spurious wakeups has this tidbit: The pthread_cond_wait() function in Linux is implemented using the futex system call. Each blocking system call on Linux returns abruptly with EINTR when the process receives a signal. … pthread_cond_wait() can’t restart the waiting because it may miss a real wakeup in the little time it … Read more