gethostbyname(), gethostbyaddr(), gethostent() - use
static storage
gethostbyname_r(), gethostbyaddr_r(), gethostent_r() - use
thread-supplied buffers
pthread_create(tid, attrs, fun, arg) - create a new thread
pthread_join(tid, status) - wait for thread to terminate
pthread_detach(tid) - no parent rendesvous
pthread_exit(status) - self-termination
pthread_cancel(tid) - terminate a thread
pthread_mutex_init(mutex, attrs) - create mutex semaphore
pthread_mutex_destroy(mutex) - delete a mutex
pthread_mutex_lock(mutex) - lock the mutex; block if locked
pthread_mutex_trylock(mutex) - lock the mutex; fail if locked
pthread_mutex_unlock(mutex) - unlock the mutex
pthread_cond_init(cond, attrs) - create a condition variable
pthread_cond_destroy(cond) - delete a condition variable
pthread_cond_wait(cond, mutex) - unlock the mutex and wait;
timed version too
pthread_cond_signal(cond) - send a signal to a thread waiting on cond
pthread_cond_broadcast(cond) - send a signal to all threads waiting on cond
This page last modified on 14 March 2001.