Script that parallelizes some processed sent to background and uses semaphores to manage them