Multithreaded Programming Guide

Exit Print View

Updated: July 2014
 
 

Linking With -lrt for POSIX Semaphores

The Oracle Solaris semaphore routines, sema_*(3C), are contained in the standard C library. By contrast, you link with the -lrt library to get the standard sem_*(3RT) POSIX semaphore routines described in Synchronization With Semaphores.