The SEM API is summarized in the following table:
Function
Description
semInit()
Initialize a semaphore
semP()
Wait on a semaphore
semV()
Signal a semaphore