JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Multithreaded Programming Guide     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Covering Multithreading Basics

2.  Basic Threads Programming

3.  Thread Attributes

4.  Programming with Synchronization Objects

5.  Programming With the Oracle Solaris Software

6.  Programming With Oracle Solaris Threads

7.  Safe and Unsafe Interfaces

8.  Compiling and Debugging

9.  Programming Guidelines

A.  Extended Example: A Thread Pool Implementation

Index

Numbers and Symbols

A

B

C

D

E

F

G

I

J

K

L

M

N

P

R

S

T

U

V

W

X

P

parallel, algorithms, index iconParallelizing a Loop on a Shared-Memory Parallel Computer
PC, program counter, index iconUser-Level Threads State
PC_GETCID, index iconLWPs and Scheduling Classes
PC_GETCLINFO, index iconLWPs and Scheduling Classes
PC_GETPARMS, index iconLWPs and Scheduling Classes
PC_SETPARMS, index iconLWPs and Scheduling Classes
Performance Analyzer, index iconProfiling with Performance Analyzer
Peterson's Algorithm, index iconPeterson's Algorithm
PL/1 language, index iconContinuation Semantics
portability, index iconProgramming with Synchronization Objects
pread, index iconShared I/O and New I/O System Calls
printf, index iconSignal Handlers and Async-Signal Safety
problem, index iconSynchronizing Threads
priocntl(), index iconTimeshare Scheduling
priocntl, index iconLWPs and Scheduling Classes
PC_GETCID, index iconLWPs and Scheduling Classes
PC_GETCLINFO, index iconLWPs and Scheduling Classes
PC_SETPARMS, index iconLWPs and Scheduling Classes
priocntl(2), PC_GETPARMS, index iconLWPs and Scheduling Classes
priority, index iconUser-Level Threads State
and scheduling
index iconRealtime Scheduling
index iconthr_setprio Syntax
inheritance
index iconthr_create Syntax
index iconthr_getprio Syntax
range, index iconthr_setprio Syntax
setting for a thread, index iconthr_setprio Syntax
priority inversion, index iconpthread_mutexattr_setprotocol Syntax
producer and consumer problem
index iconProducer and Consumer Problem Using Semaphores
index iconProducer and Consumer Problem Example
index iconShared-Memory Multiprocessors
producer/consumer problem, index iconExample of Producer and Consumer Problem
profiling, index iconProfiling with Performance Analyzer
multithreaded programs, index iconProfiling a Multithreaded Program
programmer-allocated stack
index iconBuilding Your Own Stack
index iconthr_min_stack Syntax
index iconthr_min_stack Syntax
prolagen, decrease semaphore, P operation, index iconSynchronization With Semaphores
pthread_atfork, index iconFork-One Safety Problem and Solution
syntax
index iconpthread_atfork Syntax
index iconFork-One Safety Problem and Solution
pthread_attr_destroy
return values, index iconpthread_attr_destroy Return Values
syntax, index iconpthread_attr_destroy Syntax
pthread_attr_getdetachstate
return values, index iconpthread_attr_getdetachstate Return Values
syntax, index iconpthread_attr_getdetachstate Syntax
pthread_attr_getguardsize
return values, index iconpthread_attr_getguardsize Return Values
syntax, index iconpthread_attr_getguardsize Syntax
pthread_attr_getinheritsched
return values, index iconpthread_attr_getinheritsched Return Values
syntax, index iconpthread_attr_getinheritsched Syntax
pthread_attr_getschedparam
return values, index iconpthread_attr_getschedparam Return Values
syntax, index iconpthread_attr_getschedparam Syntax
pthread_attr_getschedpolicy
return values, index iconpthread_attr_getschedpolicy Return Values
syntax, index iconpthread_attr_getschedpolicy Syntax
pthread_attr_getscope
return values, index iconpthread_attr_getscope Return Values
syntax, index iconpthread_attr_getscope Syntax
pthread_attr_getstack
return values, index iconpthread_attr_getstack Return Values
syntax, index iconpthread_attr_getstack Syntax
pthread_attr_getstacksize
return values, index iconpthread_attr_getstacksize Return Values
syntax, index iconpthread_attr_getstacksize Syntax
pthread_attr_init
attribute values, index iconpthread_attr_init Syntax
return values, index iconpthread_attr_init Return Values
syntax, index iconpthread_attr_init Syntax
pthread_attr_setdetachstate
return values, index iconpthread_attr_setdetachstate Return Values
syntax, index iconpthread_attr_setdetachstate(3C) Syntax
pthread_attr_setguardsize
return values, index iconpthread_attr_setguardsize Return Values
syntax, index iconpthread_attr_setguardsize(3C) Syntax
pthread_attr_setinheritsched
return values, index iconpthread_attr_setinheritsched Return Values
syntax, index iconpthread_attr_setinheritsched Syntax
pthread_attr_setschedparam
return values, index iconpthread_attr_setschedparam Return Values
syntax, index iconpthread_attr_setschedparam Syntax
pthread_attr_setschedpolicy
return values, index iconpthread_attr_setschedpolicy Return Values
syntax, index iconpthread_attr_setschedpolicy(3C) Syntax
pthread_attr_setscope
return values, index iconpthread_attr_setscope Return Values
syntax, index iconpthread_attr_setscope Syntax
pthread_attr_setstack
return values, index iconpthread_attr_setstack(3C) Return Values
syntax, index iconpthread_attr_setstack(3C) Syntax
pthread_attr_setstacksize
return values, index iconpthread_attr_setstacksize Return Values
syntax, index iconpthread_attr_setstacksize Syntax
pthread_barrier_destroy
return values, index iconpthread_barrier_destroy Return Values
syntax, index iconpthread_barrier_destroy Syntax
pthread_barrier_init
return values, index iconpthread_barrier_init() Return Values
syntax, index iconpthread_barrier_init() Syntax
pthread_barrier_wait
return values, index iconpthread_barrier_wait() Return Values
syntax, index iconpthread_barrier_wait() Syntax
pthread_barrierattr_destroy
return values, index iconpthread_barrierattr_destroy() Return Values
syntax, index iconpthread_barrierattr_destroy() Syntax
pthread_barrierattr_getpshared, return values, index iconpthread_barrierattr_getpshared() Return Values
pthread_barrierattr_init
return values, index iconpthread_barrierattr_init() Return Values
syntax, index iconpthread_barrierattr_init() Syntax
pthread_barrierattr_setpshared, return values, index iconpthread_barrierattr_setpshared() Return Values
pthread_cancel
return values, index iconpthread_cancel Return Values
syntax, index iconpthread_cancel Syntax
pthread_cleanup_pop, syntax, index iconpthread_cleanup_pop Syntax
pthread_cleanup_push, syntax, index iconpthread_cleanup_push Syntax
pthread_cond_broadcast
index iconpthread_cond_wait Syntax
index iconLost Wake-Up Problem
index iconExtending Traditional Signals
example, index iconpthread_cond_broadcast Syntax
return values, index iconpthread_cond_broadcast Return Values
syntax, index iconpthread_cond_broadcast Syntax
pthread_cond_destroy
return values, index iconpthread_cond_destroy Return Values
syntax, index iconpthread_cond_destroy Syntax
pthread_cond_init
return values, index iconpthread_cond_init Return Values
syntax, index iconpthread_cond_init Syntax
pthread_cond_reltimedwait_np
return values, index iconpthread_cond_reltimedwait_np Return Values
syntax, index iconpthread_cond_reltimedwait_np Syntax
pthread_cond_signal
index iconpthread_cond_wait Syntax
index iconLost Wake-Up Problem
index iconProducer and Consumer Problem
index iconExtending Traditional Signals
example, index iconpthread_cond_signal Syntax
return values, index iconpthread_cond_signal Return Values
syntax, index iconpthread_cond_signal Syntax
pthread_cond_timedwait
example, index iconpthread_cond_timedwait Syntax
return values, index iconpthread_cond_timedwait Return Values
syntax, index iconpthread_cond_timedwait Syntax
pthread_cond_wait
index iconLost Wake-Up Problem
index iconProducer and Consumer Problem
index iconExtending Traditional Signals
example, index iconpthread_cond_signal Syntax
return values, index iconpthread_cond_wait Return Values
syntax, index iconpthread_cond_wait Syntax
pthread_condattr_destroy
return values, index iconpthread_condattr_destroy Return Values
syntax, index iconpthread_condattr_destroy Syntax
pthread_condattr_getclock, return values, index iconpthread_condattr_getclock Returns
pthread_condattr_getpshared
return values, index iconpthread_condattr_getpshared Return Values
syntax, index iconpthread_condattr_getpshared Syntax
pthread_condattr_init
return values, index iconpthread_condattr_init Return Values
syntax, index iconpthread_condattr_init Syntax
pthread_condattr_setclock
return values, index iconpthread_condattr_setclock Returns
syntax, index iconpthread_condattr_setclock Syntax
pthread_condattr_setpshared
return values, index iconpthread_condattr_setpshared Return Values
syntax, index iconpthread_condattr_setpshared Syntax
pthread_create
return values, index iconpthread_create Return Values
syntax, index iconpthread_create Syntax
pthread_detach
return values, index iconpthread_detach Return Values
syntax, index iconpthread_detach Syntax
pthread_equal
return values, index iconpthread_equal Return Values
syntax, index iconpthread_equal Syntax
pthread_exit
return values, index iconpthread_exit Return Values
syntax, index iconpthread_exit Syntax
pthread_getconcurrency
return values, index iconpthread_getconcurrency Return Values
syntax, index iconpthread_getconcurrency Syntax
pthread_getschedparam
return values, index iconpthread_getschedparam Return Values
syntax, index iconpthread_getschedparam Syntax
pthread_getspecific, syntax, index iconpthread_getspecific Syntax
pthread_join, index iconTamed Asynchrony
return values, index iconpthread_join Return Values
syntax, index iconpthread_join Syntax
pthread_join(3C), index iconAbout Stacks
pthread_key_create
example, index iconGlobal and Private Thread-Specific Data Example
return values, index iconpthread_key_create Return Values
syntax, index iconpthread_key_create Syntax
pthread_key_delete
return values, index iconpthread_key_delete Return Values
syntax, index iconpthread_key_delete Syntax
pthread_kill(), index iconSending a Signal to a Specific Thread
pthread_kill
return values, index iconpthread_kill Return Values
syntax, index iconpthread_kill Syntax
pthread_mutex_consistent_np
return values, index iconpthread_mutex_consistent_np Return Values
syntax, index iconpthread_mutex_consistent_np Syntax
pthread_mutex_destroy
return values, index iconpthread_mutex_destroy Return Values
syntax, index iconpthread_mutex_destroy Syntax
pthread_mutex_getprioceiling
return values, index iconpthread_mutex_getprioceiling Return Values
syntax, index iconGetting the Mutex's Priority Ceiling
pthread_mutex_init
return values, index iconpthread_mutex_init Return Values
syntax, index iconpthread_mutex_init Syntax
pthread_mutex_lock
example
index iconCode Examples of Mutex Locking
index iconExamples of Using Nested Locking With a Singly-Linked List
index iconExample of Nested Locking With a Circularly-Linked List
return values, index iconpthread_mutex_lock Return Values
syntax, index iconpthread_mutex_lock Syntax
pthread_mutex_setprioceiling
return values, index iconpthread_mutex_setprioceiling Return Values
syntax, index iconSetting the Mutex's Priority Ceiling
pthread_mutex_timedlock
return values
index iconpthread_mutex_timedlock() Return Values
index iconpthread_mutex_reltimedlock_np() Return Values
syntax
index iconpthread_mutex_timedlock() Syntax
index iconpthread_mutex_reltimedlock_np() Syntax
pthread_mutex_trylock, index iconExamples of Using Lock Hierarchies
return values, index iconpthread_mutex_trylock Return Values
syntax, index iconpthread_mutex_trylock Syntax
pthread_mutex_trylock(3C), index iconAvoiding Deadlock
pthread_mutex_unlock
example
index iconCode Examples of Mutex Locking
index iconExamples of Using Nested Locking With a Singly-Linked List
index iconExample of Nested Locking With a Circularly-Linked List
return values, index iconpthread_mutex_unlock Return Values
syntax, index iconpthread_mutex_unlock Syntax
pthread_mutexattr_destroy
return values, index iconpthread_mutexattr_destroy Return Values
syntax, index iconpthread_mutexattr_destroy Syntax
pthread_mutexattr_getprioceiling
return values, index iconpthread_mutexattr_getprioceiling Return Values
syntax, index iconGetting the Mutex Attribute's Priority Ceiling
pthread_mutexattr_getprotocol
return values, index iconpthread_mutexattr_getprotocol Return Values
syntax, index iconGetting the Mutex Attribute's Protocol
pthread_mutexattr_getpshared
return values, index iconpthread_mutexattr_getpshared Return Values
syntax, index iconpthread_mutexattr_getpshared Syntax
pthread_mutexattr_getrobust_np
return values, index iconpthread_mutexattr_getrobust_np Return Values
syntax, index iconGetting the Mutex's Robust Attribute
pthread_mutexattr_gettype
return values, index iconpthread_mutexattr_gettype Return Values
syntax, index iconGetting the Mutex Type Attribute
pthread_mutexattr_init
return values, index iconpthread_mutexattr_init Return Values
syntax, index iconpthread_mutexattr_init Syntax
pthread_mutexattr_setprioceiling
return values, index iconpthread_mutexattr_setprioceiling Return Values
syntax, index iconSetting the Mutex Attribute's Priority Ceiling
pthread_mutexattr_setprotocol
return values, index iconpthread_mutexattr_setprotocol Return Values
syntax, index iconSetting the Mutex Attribute's Protocol
pthread_mutexattr_setpshared
return values, index iconpthread_mutexattr_setpshared Return Values
syntax, index iconpthread_mutexattr_setpshared Syntax
pthread_mutexattr_setrobust_np
return value, index iconpthread_mutexattr_setrobust_np Return Values
syntax, index iconSetting the Mutex's Robust Attribute
pthread_mutexattr_settype
return values, index iconpthread_mutexattr_settype Return Values
syntax, index iconSetting the Mutex Type Attribute
pthread_once
return values, index iconpthread_once Return Values
syntax, index iconpthread_once Syntax
PTHREAD_PRIO_INHERIT, index iconpthread_mutexattr_setprotocol Syntax
PTHREAD_PRIO_NONE, index iconpthread_mutexattr_setprotocol Syntax
PTHREAD_PRIO_PROTECT, index iconpthread_mutexattr_setprotocol Syntax
pthread_rwlock_destroy
return values, index iconpthread_rwlock_destroy Return Values
syntax, index iconpthread_rwlock_destroy Syntax
pthread_rwlock_init
return values, index iconpthread_rwlock_init Return Values
syntax, index iconpthread_rwlock_init Syntax
pthread_rwlock_rdlock
return values, index iconpthread_rwlock_rdlock Return Values
syntax, index iconpthread_rwlock_rdlock Syntax
pthread_rwlock_timedrdlock
return values, index iconpthread_rwlock_timedrdlock Return Values
syntax, index iconpthread_rwlock_timedrdlock Syntax
pthread_rwlock_timedwrlock, syntax, index iconpthread_rwlock_timedwrlock Syntax
pthread_rwlock_tryrdlock
return values, index iconpthread_rwlock_tryrdlock Return Values
syntax, index iconpthread_rwlock_tryrdlock Syntax
pthread_rwlock_trywrlock
return values, index iconpthread_rwlock_trywrlock Return Values
syntax, index iconpthread_rwlock_trywrlock Syntax
pthread_rwlock_unlock
return values, index iconpthread_rwlock_unlock Return Values
syntax, index iconpthread_rwlock_unlock Syntax
pthread_rwlock_wrlock
return values, index iconpthread_rwlock_wrlock Return Values
syntax, index iconpthread_rwlock_wrlock Syntax
pthread_rwlockattr_destroy
return values, index iconpthread_rwlockattr_destroy Return Values
syntax, index iconpthread_rwlockattr_destroy Syntax
pthread_rwlockattr_getpshared
return values, index iconpthread_rwlockattr_getpshared Return Values
syntax, index iconpthread_rwlockattr_getpshared Syntax
pthread_rwlockattr_init
return values, index iconpthread_rwlockattr_init Return Values
syntax, index iconpthread_rwlockattr_init Syntax
pthread_rwlockattr_setpshared
return values, index iconpthread_rwlockattr_setpshared Return Values
syntax, index iconpthread_rwlockattr_setpshared Syntax
PTHREAD_SCOPE_PROCESS, index iconThread Scheduling
PTHREAD_SCOPE_SYSTEM
index iconThread Scheduling
index iconSetting the Scope
pthread_self
return values, index iconpthread_self Return Values
syntax, index iconpthread_self Syntax
pthread_setcancelstate
return values, index iconpthread_setcancelstate Return Values
syntax, index iconpthread_setcancelstate Syntax
pthread_setcanceltype
return values, index iconpthread_setcanceltype Return Values
syntax, index iconpthread_setcanceltype Syntax
pthread_setconcurrency
return values, index iconpthread_setconcurrency Return Values
syntax, index iconpthread_setconcurrency Syntax
pthread_setschedparam
return values, index iconpthread_setschedparam Return Values
syntax, index iconpthread_setschedparam Syntax
pthread_setschedprio
return values, index iconpthread_setschedprio Return Values
syntax, index iconpthread_setschedprio Syntax
pthread_setspecific
example, index iconGlobal and Private Thread-Specific Data Example
return values, index iconpthread_setspecific Return Values
syntax, index iconpthread_setspecific Syntax
pthread_sigmask(), index iconSetting the Thread's Signal Mask
pthread_sigmask
return values
index iconpthread_sigmask Return Values
index iconpthread_atfork Return Values
syntax, index iconpthread_sigmask Syntax
pthread_spin_destroy()
syntax
index iconpthread_spin_destroy() Syntax
index iconpthread_spin_destroy() Return Values
pthread_spin_init, syntax, index iconpthread_spin_init() Syntax
pthread_spin_lock
return values, index iconpthread_spin_lock() Return Values
syntax, index iconpthread_spin_lock() Syntax
pthread_spin_trylock
return values, index iconpthread_spin_trylock() Return Values
syntax, index iconpthread_spin_trylock() Syntax
pthread_spin_unlock
return values, index iconpthread_spin_unlock() Return Values
syntax, index iconpthread_spin_unlock() Syntax
PTHREAD_STACK_MIN, index iconBuilding Your Own Stack
pthread_testcancel, syntax, index iconpthread_testcancel Syntax
putc, index iconAlternatives to getc and putc
putc_unlocked, index iconAlternatives to getc and putc
pwrite, index iconShared I/O and New I/O System Calls