Figure 1 OS/2 API Calls Available for Manipulating RAM, Fast-Safe RAM, and System Semaphores

Semaphore API for synchronization/resource control

DosRequestSem       Request ownership of a semaphore
DosClearSem         Relinquish semaphore ownership

Semaphore API for event signaling

DosSemSet           Unconditionally set a semaphore
DosSemClear         Unconditionally clear a semaphore
DosSemWait          Wait on a semaphore to be cleared
DosSemSetWait       Set a semaphore and then wait until it
                    is cleared by another process/thread
DosMuxSemWait       Wait for one of several semaphores to
                    be cleared

Semaphore API for use with Fast-Safe RAM Semaphores

DosFSRamSemRequest  Request ownership of a Fast-Safe
                    RAM Semaphore
DosFSRamSemClear    Release ownership of a Fast-Safe
                    RAM Semaphore

Semaphore API for accessing System Semaphores

DosCreateSem        Create a system semaphore
DosOpenSem          Request access to an existing system
                    semaphore
DosCloseSem         Close a system semaphore