Scheduler checks thread state