In startParallelAlgo, keeping a local copy of inputQueueSize to minimize the number of lock grabbings