Semaphore Types
In general, there are two types of semaphores:
- a mutex semaphore guarantees mutually exclusive access to a resource (only one entry). The mutex sema is initialized to 1.
- A counted semaphore represents a resource with many unites available (as indicated by the count to which it is initialized). A counted semaphore lets a process pass as long as more instances are available.