Question d’entretien chez ByteDance

What is the difference between mutex and semaphore