Pergunta de entrevista da empresa Byteworks Technology Solutions

How do you use a semaphore in concurrency in java?