Checks the guards and the condition of every wait, resumes those done and runs them until they wait or end.