https://peeterjoot.com/2014/10/21/differences-between-locks-mutexes-and-semaphores/
Differences between Locks, Mutexes, and Semaphores