DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Threads

Threads

This section introduces the Threads Library, which provides facilities for concurrent programming. Before describing the routines included in the Threads Library, this section first discusses concepts and terminology of concurrent programming in general and of the Threads Library in particular.

The Threads Library provides two classes of routines: thread management routines and synchronization routines. The thread management routines are discussed in ``Basic threads management''. These include routines to create threads, terminate threads, wait for threads, and adjust threads' scheduling characteristics. In addition, this section discusses how signals interact with multithreaded programs, how threads are scheduled, and the relationship between threads and lightweight processes. The synchronization routines are discussed in ``Synchronizing threads''. This includes an overview of the various types of locks, semaphores, barriers, and condition variables, used to synchronize threads that are sharing data.

``Compilation environment'' and ``Tracing multithreaded programs'' discuss the compilation environment and facilities for tracing multithreaded programs. Finally, ``Examples'' gets you started with some basic threads programs.

This discussion is not intended to replicate all the information covered on the reference manual pages for the threads library routines. Please refer to the manual pages referenced for details such as error returns. The overview pages, thread(3thread) and synch(3synch) list all the available routines.


Next topic: What is concurrent programming?

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004