ChorusOS 5.0 Features and Architecture Overview

POSIX Semaphores API

The POSIX semaphores API is summarized in the following table. Some of the calls listed are also included in other features:

Function 

Comment 

sem_open()

Open/initialize a semaphore 

sem_close()

Close a semaphore 

sem_init()

Initialize a semaphore 

sem_destroy()

Delete a semaphore 

sem_wait()

Wait on a semaphore 

sem_trywait()

Attempt to lock a semaphore 

sem_post()

Signal a semaphore 

sem_getvalue()

Get semaphore counter value 

sem_unlink()

Remove a named semaphore