[Parallel] Removing the threadDelay waiting

To wait until the work is done a semaphore is being used.
The semaphore is incremented when a worker thread finishes
(is killed by the runtime).
[Parallel] s/consumer/processFile/