By Bradford Nichols, Dick Buttlar, Jacqueline Proulx Farrell
First Edition
September 1996
Pages: 286
ISBN 10: 1-56592-115-1 |
ISBN 13: 9781565921153
![]()
![]()
![]()
![]()
(Average of 1 Customer Reviews)
POSIX threads, or pthreads, allow multiple tasks to run concurrently within the same program. This book discusses when to use threads and how to make them efficient. It features realistic examples, a look behind the scenes at the implementation and performance issues, and special topics such as DCE and real-time extensions.
Full Description
- Basic design techniques
- Mutexes, conditions, and specialized synchronization techniques
- Scheduling, priorities, and other real-time issues
- Cancellation
- UNIX libraries and re-entrant routines
- Signals
- Debugging tips
- Measuring performance
- Special considerations for the Distributed Computing Environment (DCE)
Cover | Table of Contents | Index | Colophon
Featured customer reviews
Pthreads Programming Review, October 25 2000
The book was OK when I first read it. However, I think that it lacks necessary detail about thread synchronization. The mutex/condition variable example using inc_counter and watch_count wouldn't work. Frankly, I've found that there are a lot of problems one will run into if they try to develop an app after having read this book. No attempt is made to discuss what happens when a thread waiting on a condition variable doesn't get to run even though it has been signalled (using pthread_cond_signal). The gloss over of pipelining was particularly annoying to me since I really wanted to implement a working pipeline using pthreads, but haven't been able to due to the problem mentioned above. I could be missing something, but the point of the book is to ensure (at least on some level) that I'm not...
Pthreads Programming Review, March 25 1999
Submitted by len b (seven-three-six-six-2-dot-2-six-f [Respond | View]
It's pretty decent and covers quite a bit of
ground. A nice book to start with. Otoh, it's not
very deep, and you'll definitely need more
although more on concurrent programming than
pthreads per se, I'd say. Another pretty good
book I have is "Programming with Threads", by Steve
Kleiman, and others.
Pthreads Programming Review, March 01 1999
Submitted by Doug.Campbell@trw.com [Respond | View]
I'd like to report an errata: On page 111 of the February 1998 edition (which I purchased last week at Bookstar), the text states that _POSIX_THREAD_ATTR_PRIORITY_SCHEDULING determines whether a system implements priority scheduling. Page 150 restates this, referring to
the compile-time constant _POSIX_THREAD_PRIORITY_SCHEDULING. An examination of my IRIX 6.4 /usr/include/unistd.h file
indicates that the latter is used. A grep of the entire /usr/include subtree turned up no uses of _POSIX_THREAD_ATTR_PRIORITY_SCHEDULING.





