Introduction - If you have any usage issues, please Google them yourself
Semaphore is also known as signal lock, mainly used in inter-process synchronization and mutual exclusion, are used in mutually exclusive, it is usually as a resource lock. Semaphore usually through two atomic operations wait (P) and signal (V) to access. semaphore wait operation so that the value of+ 1, signal operation of the signal value of the volume of-1. The procedure to amend wait operation, so that it can apply more than one semaphore