Skip to content
ISBN: 0136807291
ISBN13: 9780136807292

Multithreaded Programming With Pthreads

$8.59List Price: $34.95
Save $26.36!
ISBN: 0136807291
ISBN13: 9780136807292
Formats

Conditions

A read copy that remains in clean condition.

Formats

Conditions

A read copy that remains in clean condition.

See all 2 editionsfrom $8.59

Book Overview

Multithreading lets programs do two or more tasks at once, and it can let programmers take advantage of the latest symmetric multiprocessor (SMP) systems in Unix. But to get this performance boost, you'll want to read Multithreaded Programming with Pthreads first. It delivers both the concepts behind multithreaded design along with real-world source code excerpts that show you how to apply the concepts to real-world Unix projects.

This book begins with the evolution of the various libraries that support multithreading. In the ecumenical spirit of Unix, the authors cover all the bases of Portable Operating System Interface for Unix (POSIX) libraries, including Linux, DEC, IBM, HP, and Sun Solaris, and even add-ons to NT and OS/2 for their POSIX support. The authors acknowledge that there may be variations in your version of Unix, but suggest that POSIX threads have good support from most vendors.

The authors then cover the basics of threads and how they run in today's Unix. The authors turn quickly to their implementation in variants of Unix, including Lightweight Processes (LWPs). They then cover the lifecycles of threads and how they are scheduled.

The primary focus in Multithreaded Programming with Pthreads is on how to make threads work together effectively. Multithreading involves a host of design issues, from patterns of how to organize threading in a program (with models such as the Producer/Consumer or the Master/Slave) to how to coordinate work done by multiple threads with facilities such as mutexes, critical sections, semaphores, and more arcane solutions (such as monitors and spin locks). The authors guide the reader to all the possibilities here, including suggestions on program design.

The real-world focus here involves some sample code (in C), a quick tour of the issues in using Pthreads with other programming languages, and some excellent material on benchmarking multithreaded code. The authors' ideas on when to use and when to avoid Pthreads are also useful. Though Pthreads will not work everywhere, they have a lot of potential to enhance the performance of today's software. This technical--and quite engaging--text can show you if Pthreads are in the cards for your next Unix programming project. This description may be from another edition of this product.

Format:
Paperback
Language:
English
ISBN:
0136807291
ISBN13:
9780136807292
Release Date:
January 1997
Publisher:
Pearson P T R
Length:
382 Pages
Weight:
1.85 lbs.
Dimensions:
0.9″ × 6.9″ × 9.2″
Computer ScienceComputersComputers & TechnologyEducation & ReferenceMathematicsParallel Processing ComputersScience & MathSoftwareSystems Analysis & DesignTextbooks

More by Sun Microsystems Press

Customer Reviews

2 customer ratings | 2 reviews
Write a Review

Wonderful!

The authors of this book, in addition to their knowledge of threads, also know how to teach. The only shortcoming I could point out is that certain topics are treated shallowly, while less important topics are explained with too much detail.What's really interesting about the book is the authors' ``don't do that'' style. Another reviewer found this style to be bad. I found it highly helpful. Instead of presenting a single solution for a problem (``The One and Only True Solution''), and leaving the reader wondering about alternative solutions, they go on to explain what's wrong with these other solutions. People learn by making mistakes, and the authors point out lots of mistakes that can be avoided. This is an invaluable feature, not a bug.

0

Very good book on Pthreads

This book has all of the information from the "Threads Primer" book and more. It covers the topic very well and if this was the only book you read you'd be fine. I like the Butenhof threads book just a bit better because the programming examples there were much better than the small code fragments presented in this book.

0