compute scheduler thread timeout properly