or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
More Buying Choices
Have one to sell? Sell yours here
Pthreads Programming: A POSIX Standard for Better Multiprocessing (O'Reilly Nutshell)
 
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Pthreads Programming: A POSIX Standard for Better Multiprocessing (O'Reilly Nutshell) [Paperback]

Bradford Nichols (Author), Dick Buttlar (Author), Jacqueline Proulx Farrell (Author)
4.0 out of 5 stars  See all reviews (14 customer reviews)

List Price: $39.99
Price: $25.19 & this item ships for FREE with Super Saver Shipping. Details
You Save: $14.80 (37%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Friday, February 3? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Paperback $25.19  
Unknown Binding --  
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Book Description

1565921151 978-1565921153 September 8, 1996 1

Computers are just as busy as the rest of us nowadays. They have lots of tasks to do at once, and need some cleverness to get them all done at the same time.

That's why threads are seen more and more often as a new model for programming. Threads have been available for some time. The Mach operating system, the Distributed Computer Environment (DCE), and Windows NT all feature threads.

One advantage of most UNIX implementations, as well as DCE, is that they conform to a recently ratified POSIX standard (originally 1003.4a, now 1003.1c), which allows your programs to be portable between them. POSIX threads are commonly known as pthreads, after the word that starts all the names of the function calls. The standard is supported by Solaris, OSF/1, AIX, and several other UNIX-based operating systems.

The idea behind threads programming is to have multiple tasks running concurrently within the same program. They can share a single CPU as processes do, or take advantage of multiple CPUs when available. In either case, they provide a clean way to divide the tasks of a program while sharing data.

A window interface can read input on dozens of different buttons, each responsible for a separate task. A network server has to accept simultaneous calls from many clients, providing each with reasonable response time. A multiprocessor runs a number-crunching program on several CPUs at once, combining the results when all are done. All these kinds of applications can benefit from threads.

In this book you will learn not only what the pthread calls are, but when it is a good idea to use threads and how to make them efficient (which is the whole reason for using threads in the first place). The authors delves into performance issues, comparing threads to processes, contrasting kernel threads to user threads, and showing how to measure speed. He also describes in a simple, clear manner what all the advanced features are for, and how threads interact with the rest of the UNIX system.

Topics include:

  • 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)

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Pthreads Programming: A POSIX Standard for Better Multiprocessing (O'Reilly Nutshell) + Programming with POSIX® Threads + Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)
Price For All Three: $123.12

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Programming with POSIX® Threads $46.44

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition) $51.49

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details



Editorial Reviews

From the Publisher

Computers are just as busy as the rest of us nowadays. They have lots of tasks to do at once, and need some cleverness to get them all done at the same time. That's why threads are seen more and more often as a new model for programming. Threads have been available for some time. The Mach operating system, the Distributed Computer Environment (DCE), and Windows NT all feature threads. One advantage of most UNIX implementations, as well as DCE, is that they conform to a recently ratified POSIX standard (originally 1003.4a, now 1003.1c), which allows your programs to be portable between them. POSIX threads are commonly known as pthreads, after the word that starts all the names of the function calls. The standard is supported by Solaris, OSF/1, AIX, and several other UNIX-based operating systems. The idea behind threads programming is to have multiple tasks running concurrently within the same program. They can share a single CPU as processes do, or take advantage of multiple CPUs when available. In either case, they provide a clean way to divide the tasks of a program while sharing data. A window interface can read input on dozens of different buttons, each responsible for a separate task. A network server has to accept simultaneous calls from many clients, providing each with reasonable response time. A multiprocessor runs a number-crunching program on several CPUs at once, combining the results when all are done. All these kinds of applications can benefit from threads. In this book you will learn not only what the pthread calls are, but when it is a good idea to use threads and how to make them efficient (which is the whole reason for using threads in the first place). The authors delves into performance issues, comparing threads to processes, contrasting kernel threads to user threads, and showing how to measure speed. He also describes in a simple, clear manner what all the advanced features are for, and how threads interact with the rest of the UNIX system. Topics include: 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)

From the Back Cover

Computers are just as busy as the rest of us nowadays. They have lots of tasks to do at once and need some cleverness to get them all done at the same time. That's why threads are becoming a new model for programming. Microsoft Windows NT, the Distributed Computing Environment (DCE), and many UNIX-based operating systems support threads. One advantage of most UNIX and DCE implementations is that they conform to a recently ratified POSIX standard (originally 1003.4a, now 1003.1c), which allows your programs to be portable between them. The POSIX threads standard, commonly known as Pthreads, is supported by most UNIX-based operating systems. With threads programming, multiple tasks run concurrently within the same program. They can share a single CPU as processes do or take advantage of multiple CPUs when available. They provide a clean way to divide the tasks of a program while sharing data. In this book you will learn when to use threads and how to make them efficient. The book delves into performance issues, comparing threads to processes, contrasting kernel threads to user threads, and showing how to measure speed. It describes in a simple, clear manner what all the advanced features are for and how threads interact with the rest of the UNIX system.

Product Details

  • Paperback: 288 pages
  • Publisher: O'Reilly Media; 1 edition (September 8, 1996)
  • Language: English
  • ISBN-10: 1565921151
  • ISBN-13: 978-1565921153
  • Product Dimensions: 8.5 x 7.7 x 0.6 inches
  • Shipping Weight: 1.1 pounds (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (14 customer reviews)
  • Amazon Best Sellers Rank: #293,732 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

14 Reviews
5 star:
 (6)
4 star:
 (3)
3 star:
 (4)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.0 out of 5 stars (14 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

24 of 25 people found the following review helpful:
3.0 out of 5 stars Okay for concepts, but no help in coding, June 23, 1999
This review is from: Pthreads Programming: A POSIX Standard for Better Multiprocessing (O'Reilly Nutshell) (Paperback)
The strength of this book is it's brevity: 233 pp of text plus appendices. But the code samples are incomplete (fragments). You'll be able to get an idea of how pthreads work and the methods available, but you'll have a very hard time if you need to actually write code. There is an error on p.126. If you want to write code, get "Programming with POSIX Threads" by David Butenhof. It has complete code examples and is not that much longer: 305 pp of text plus appendices. But I did find this Nichols book helpful when I was curious about pthreads. I commend O'Reilly for the nice illustrations in this book -- above average. They helped convey concepts.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


15 of 16 people found the following review helpful:
4.0 out of 5 stars I think it provides a good overview, September 22, 2000
By 
Dan Crevier (Bellevue, WA United States) - See all my reviews
(REAL NAME)   
This review is from: Pthreads Programming: A POSIX Standard for Better Multiprocessing (O'Reilly Nutshell) (Paperback)
I agree with the other reviews that it's not the ultimate authority on pthreads, but I think it provides a great overview from a very practical standpoint. It has lots of good discussions on when to use threads, general design priniciples of using threads, problems you will likely encounter, and discussions of performance. It also has some good examples, including an example of how to turn some non-thread-safe linked list code into thread-safe code. I really like that its brief and doesn't go into too many details -- you can read it from cover to cover. If you want more details, you will want to refer to one of the other books that the other reviewers have mentioned.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


15 of 16 people found the following review helpful:
3.0 out of 5 stars Good Pthreads book but I like other available books better, January 4, 1999
By A Customer
This review is from: Pthreads Programming: A POSIX Standard for Better Multiprocessing (O'Reilly Nutshell) (Paperback)
Of the 4 I've read on the topic, this is a good book but my personal preference (based on how the information was presented, the relevance of coding examples, etc.) is for the Butenhof Pthreads book (excellent) or the Lewis, et. al. Multithreaded Programming book (also very good).
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Back Cover | Surprise Me!
Search Inside This Book:

Citations (learn more)


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(3)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...



Look for Similar Items by Category


Look for Similar Items by Subject