Threads Primer: A Guide to Multithreaded ProgrammingProviding an overview of the Solaris and POSIX multithreading architectures, this book explains threads at a level that is completely accessible to programmers and system architects with no previous knowledge of threads. It covers the business and technical benefits of threaded programs, along with discussions of third party software that is threaded, pointing out the benefits. It also describes the design of the Solaris MT API, with references to distinctions in POSIX, contains a set of example programs which illustrate the usage of the Solaris and POSIX APIs, and explains the use of programming tools: Thread Analyzer, LockLint, LoopTool and Debugger. |
Common terms and phrases
attr attribute object blocking system call bound thread buffer cancellation Code Example compiler concurrency condition variable context switch corresponding error number created thread critical section deadlock Debugger default defined EINVAL errno execute exit fails and returns Figure file descriptor following conditions occur FORTRAN function global variable include pthread.h indicate the error initialized interface LockLint loop machine main thread main_thr malloc Matrix Multiplication MT program multithreaded programs mutex lock mutex variable mutex_unlock NULL number is returned number of threads operating system POSIX threads priority priority inversion process structure processor reader/writer lock real-time release returned to indicate returns the corresponding returns zero routine runnable scheduling policy semaphore server shared memory signal handler signal mask SIGUSR1 sigwait SPARCstation SPARCworks Debugger specific spin lock stack SunSoft synchronization variable thr_create thr_join Thread Analyzer thread_t thread-specific data threads library UNIX user space user-level waiting worker threads write