praveen|making noOfThreads part of the input