Added support for automatic signal once n number of threads have arrived