Pregunta de entrevista de Byteworks Technology Solutions

How do you use a semaphore in concurrency in java?