Binary semaphore example between threads in C

Semaphore between processes example in C

Reading Time: 2 minutes Semaphore is a synchronization mechanism. In more words, semaphores are a technique for coordinating or synchronizing activities in which multiple processes compete for the same resources. There are 2 types of semaphores: Binary semaphores & Counting semaphores.  Binary Semaphores: Only two states 0 & […]