POSIX | Solaris |
pthread_kill() | thr_kill() |
pthread_sigmask() | thr_sigsetmask() |
pthread_mutex_lock() | mutex_lock() |
sem_wait() | sema_wait() |
All POSIX threads function names begin with the prefix "pthread", with semaphore names being the exception.
Solaris
POSIX | Solaris |
pthread_create() | thr_create() |
pthread_attr_init() | ___ |
pthread_attr_setdetachstate() | ___ |
pthread_attr_getdetachstate() | ___ |
pthread_attr_setinheritsched() | ___ |
pthread_attr_getinheritsched() | ___ |
pthread_attr_setschedparam() | ___ |
pthread_attr_getschedparam() | ___ |
pthread_attr_setschedpolicy() | ___ |
pthread_attr_getschedpolicy() | ___ |
pthread_attr_setscope() | ___ |
pthread_attr_getscope() | ___ |
pthread_attr_setstackaddr() | ___ |
pthread_attr_getstackaddr() | ___ |
pthread_attr_setstacksize() | ___ |
pthread_attr_getstacksize() | ___ |
pthread_attr_destroy() | ___ |
___ | thr_min_stack() |
pthread_exit() | thr_exit() |
pthread_join() | thr_join() |
pthread_detach() | ___ |
pthread_key_create() | thr_keycreate() |
pthread_setspecific() | thr_setspecific() |
pthread_getspecific() | thr_getspecific() |
pthread_key_delete() | ___ |
pthread_sigmask() | thr_sigsetmask() |
pthread_kill() | thr_kill() |
pthread_self() | thr_self() |
pthread_equal() | ___ |
pthread_once() | ___ |
___ | thr_main() |
___ | thr_yield() |
___ | thr_suspend() |
___ | thr_continue() |
___ | thr_setconcurrency() |
___ | thr_getconcurrency() |
pthread_setschedparam() | thr_setprio() |
pthread_getschedparam() | thr_getprio() |
pthread_cancel() | ___ |
pthread_setcancelstate() | ___ |
pthread_setcanceltype() | ___ |
pthread_testcancel() | ___ |
pthread_cleanup_pop() | ___ |
pthread_cleanup_push() | ___ |
pthread_mutex_init() | mutex_init() |
pthread_mutexattr_init() | ___ |
pthread_mutexattr_setpshared() | ___ |
pthread_mutexattr_getpshared() | ___ |
pthread_mutexattr_setprotocol() | ___ |
pthread_mutexattr_getprotocol() | ___ |
pthread_mutexattr_setprioceiling() | ___ |
pthread_mutexattr_getprioceiling() | ___ |
pthread_mutexattr_destroy() | ___ |
pthread_mutex_setprioceiling() | ___ |
pthread_mutex_getprioceiling() | ___ |
pthread_mutex_lock() | mutex_lock() |
pthread_mutex_trylock() | mutex_trylock() |
pthread_mutex_unlock() | mutex_unlock() |
pthread_mutex_destroy() | mutex_destroy() |
pthread_cond_init() | cond_init() |
pthread_condattr_init() | ___ |
pthread_condattr_setpshared() | ___ |
pthread_condattr_getpshared() | ___ |
pthread_condattr_destroy() | ___ |
pthread_cond_wait() | cond_wait() |
pthread_cond_timedwait() | cond_timedwait() |
pthread_cond_signal() | cond_signal() |
pthread_cond_broadcast() | cond_broadcast() |
pthread_cond_destroy() | cond_destroy() |
___ | rwlock_init() |
___ | rw_rdlock() |
___ | rw_tryrdlock() |
___ | rw_wrlock() |
___ | rw_trywrlock() |
___ | rw_unlock() |
___ | rwlock_destroy() |
sem_init() | sema_init() |
sem_open() | ___ |
sem_close() | ___ |
sem_wait() | sema_wait() |
sem_trywait() | sema_trywait() |
sem_post() | sema_post() |
sem_getvalue() | ___ |
sem_unlink() | ___ |
sem_destroy() | sema_destroy() |
pthread_atfork() | ___ |
pthread_once() | ___ |
thr_stksegment() | ___ |
· mutex· condition variable
· reader/writer locking (optimized frequent-read occasional-write mutex)
· semaphore
POSIX implements all but reader/writer locking.
Synchronizing multiple threads diminishes their concurrency. The coarser the grain of synchronization, that is, the larger the block of code that is locked, the lesser the concurrency.
/usr/include/pthread.h
/lib/libpthread.*
/lib/libposix4.*