Queue system where the master thread wait for all tasks to be finished, without knowing how many tasks are to be done.