Semaphore in Operating System and its types

A semaphore is simply an integer variable that is shared between multiple threads. We can also say A semaphore is a data structure with an initialization operation and two usage operations. The data structure consists of a counter and a queue for picking up blocked processes. The concept comes from Dijkstra and was presented in … Read more