Change from waking up all threads to waking up one thread.