Thresholding worker
noOfWorkers as argument