variable threshold for semaphore

The number of parallel processes, controlled by the semaphore, should be set from within the gui