HP-UX Reference (11i v1 00/12) - 3 Library Functions N-Z (vol 7)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/nan.3m
________________________________________________________________
___ ___
p
pthread(3T) pthread(3T)
(Pthread Library)
Initialize/destroy contents of a read-write lock.
pthread_cond_signal(),
pthread_cond_broadcast(),
pthread_cond_timedwait(),
pthread_cond_wait()
Wait upon or signal occurrence of a condition variable.
pthread_condattr_init(),
pthread_condattr_destroy(),
pthread_condattr_getpshared(),
pthread_condattr_setpshared()
Manage condition variable attributes used for pthread_cond_init().
pthread_rwlock_init(),
pthread_rwlock_destroy()
Initialize/destroy contents of a read-write lock.
pthread_rwlock_rdlock()
,
pthread_rwlock_tryrdlock()
,
pthread_rwlock_wrlock()
,
pthread_rwlock_trywrlock()
,
pthread_rwlock_unlock()
Lock/unlock a read-write lock.
pthread_rwlockattr_init()
,
pthread_rwlockattr_destroy()
,
pthread_rwlockattr_getpshared()
,
pthread_rwlockattr_setpshared()
Manage read-write lock attributes used for pthread_rwlock_init()
.
POSIX 1.b SEMAPHORES
The semaphore functions specified in the POSIX 1.b standard can also be used for synchronization in a mul-
tithreaded application.
sem_init(),
sem_destroy()
Initialize/destroy contents of a semaphore.
sem_post(),
sem_wait(),
sem_trywait()
Increment/decrement semaphore value (possibly blocking).
SIGNALS
In a multithreaded process, all threads share signal actions. That is, a signal handler established by one
thread is used in all threads. However, each thread has a separate signal mask, by which it can selectively
block signals.
Signals can be sent to other threads within the same process, or to other processes. When a signal is sent
to the process, exactly one thread which does not have that signal blocked will handle the signal. When
sent to a thread within the same process, that thread will handle the signal, perhaps later if the signal is
blocked. Signals whose action is to terminate, stop, or continue will terminate, stop, or continue the entire
process, respectively, even if directed at a particular thread.
pthread_kill() Sends a signal to the given thread.
pthread_sigmask() Blocks selected signals for the thread.
sigwait(),
sigwaitinfo(),
sigtimedwait() These functions synchronously wait for given signals.
Section 3636 6 HP-UX Release 11i: December 2000
___
___