Semaphores are used to synchronize operations between two or more processes. POSIX defines two different sets of semaphore functions:
'System V IPC' — semctl(),
semop(),
semget().
'POSIX Semaphores' — sem_close(),
sem_destroy(),
sem_getvalue(),
sem_init(),
sem_open(),
sem_post(),
sem_try...