PThreads Programming

A POSIX Standard for Better Multiprocessing

Nonfiction, Computers, Programming, Programming Languages, CGI, JavaScript, Perl, VBScript, Internet, Web Development
Cover of the book PThreads Programming by Dick Buttlar, Jacqueline Farrell, Bradford Nichols, O'Reilly Media
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Dick Buttlar, Jacqueline Farrell, Bradford Nichols ISBN: 9781449364748
Publisher: O'Reilly Media Publication: September 1, 1996
Imprint: O'Reilly Media Language: English
Author: Dick Buttlar, Jacqueline Farrell, Bradford Nichols
ISBN: 9781449364748
Publisher: O'Reilly Media
Publication: September 1, 1996
Imprint: O'Reilly Media
Language: English

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)
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

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:

More books from O'Reilly Media

Cover of the book PostgreSQL: Up and Running by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Programming Embedded Systems by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Fitness for Geeks by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Lean UX by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Real World Web Services by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Real World Instrumentation with Python by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Windows 8.1: The Missing Manual by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Magento: Das Handbuch für Entwickler by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book How Data Science Is Transforming Health Care by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Building Products for the Enterprise by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book High Performance Python by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Presto Sketching by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Office 2013: The Missing Manual by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Jenkins 2: Up and Running by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
Cover of the book Programming Web Services with XML-RPC by Dick Buttlar, Jacqueline Farrell, Bradford Nichols
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy