[CS Fundamentals] Thread Synchronization: Semaphore, Mutex, and Lock
Semaphore vs Mutex
Semaphore
In a multi-threaded environment, your program might run into a problem if more than one threads are trying to acquire a shared resource at the same time. Semaphore is a synchronization tool used in programming to manage a...
jaylog.hashnode.dev3 min read