Added Thread pools and ques and countdownlatches