Pergunta de entrevista da empresa Garmin

What is the difference between a semaphore and a mutex?