Pergunta de entrevista da empresa RTX

What's the difference between a semaphore and a mutex?