add threads to synchronize task