|Semaphore (unsigned int count=1)|
Limits number of threads that can access the shared resource simultaneously.
|Semaphore||(||unsigned int||count = ||)|
The state of the semaphore is signaled when its counter is greater than zero and non-signaled when it is zero.
|count||the counter value.|
Decrements the counter by one.
If the counter is already zero, blocks the thread until the counter becomes greater than zero.
Increments the counter by one.
Tries to decrement the counter by one.