semaphore
Concept
Semaphore L11
A semaphore is a variable that controls access to a shared resource by maintaining a counter, allowing multiple threads to access it up to a specified limit, synchronizing concurrent access to resources by adjusting its counter value.