Threads are fun
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. With threads programming, multiple tasks run concurrently within the same program. 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.
In this book, realistic examples show both the situations where threading is valuable and the ways to use threads to improve the modularity and efficiency of a program. The author takes the user behind the scenes to show them how threads work, where to expect problems, and what performance issues exist. Chapters on DCE, real-time, and multiprocessing are included. He specializes in programming documentation -- both user-level and kernel -- and, in a former life, wrote the device driver documentation for the VMS operating system.
A few years ago, he managed the initial planning of the corporate- wide documentation effort for Digital's Alpha processor. He has a B. Brad Nichols is a free-lance do-anything-computerish-for-a-buck kind of guy who works out of Milford, NH.
Shop by category
He started his computer career working on very hard hardware fuel pumps and valves. He worked his way up through the hardware layers into software on projects involving embedded avionics systems at Textron Lycomming and United Technologies Hamilton Standard Division. After attending WPI, Brad taught training seminars to software developers on the Mach kernel interfaces.
Now, Brad is once again on his own and spends most of his time teaching software engineers about technologies with much shorter acronyms -- such as Pthreads.
Concurrent Programming; 1. Who Are You? Average customer rating 4 1 comments.
On Wikipedia all I see is this,. I'm not sure if that means that there are no updates since to the threading parts of POSIX or not?
Pthreads programming : Nichols, Bradford : Free Download, Borrow, and Streaming : Internet Archive
Is there any way to judge the relevancy of the material? At the very bottom of the Wikipedia page you reference in the "External Links" section, you will find a link to the current Posix specification of pthreads.
- Books & Videos?
- Account Options;
- Post navigation.
- Item Preview.
- PThreads Programming - O'Reilly Media?
There have been a few, but the basic principles are intact. So the books you mention are probably still good learning materials.
POSIX thread (pthread) libraries
As is mentioned in the comments below, C11 provides atomics and thread-local storage, which is implemented by GCC since 4. Thread-local storage was previously available in GCC as an extension, so it is not that new. The existence of thread-local storage reduces the need for the Pthreads thread-local storage interfaces, but that is a small part of the Pthreads library and, although thread-local storage is easier to use and syntactically more convenient, it doesn't really change program structure much.
C11 also specifies an optional threads. However, glibc does not include this header, and the use of Pthreads is still pretty well universal, although both open- and closed-source threads. Conceptually, the C11 interfaces are very similar to Pthreads; obviously, they have different names and in some cases they are simplified. However, once you've mastered Pthreads, you should have little trouble understanding any Cthreads programs you come across.
- C++ Tutorials.
- Practical Guide to Cost Estimating?
- Multi-Threaded Programming With POSIX Threads.
- Most frequently terms.
Learn more. First 10 Free. Ask Question. Asked 1 year, 2 months ago. Active 1 year, 2 months ago.
Pthreads programming a posix standard for better multiprocessing
Viewed times. Evan Carroll Evan Carroll I would also recommend looking at the Conforming to -sections in the relevant Linux man pages project man pages for each function. NominalAnimal, in replaces most of them, yes.