Mutexes vs Semaphores
This lesson explains the difference between mutexes and semaphores.
We'll cover the following...
Question # 1
What is the difference between a mutex and a semaphore?
Semaphore, on the other hand, is used for limiting access to a collection of resources. Think of semaphore as having a limited number of permits to give out. If a semaphore has given out all the permits it has, then any new thread that comes along requesting for a permit ...