Pergunta de entrevista da empresa Allot

How to synchronize 100 threads that have finished working on a specific task or something similar