The book begins with a history of threads, which were implemented rather recently (in 1979). They look at Win32 threads in particular, including all the APIs used to create and control threads. (Several of the sample programs here use graphics and even rudimentary games--such as a simple version of Pong.)
After you create threads, the authors teach you how to get them to work together. They do a fine job of explaining all the Win32 synchronization objects, such as mutexes, critical sections, and event objects, in a clear and concise style.
The strategies for coordinating threads have been well known in computer science for some time. The authors present common thread scenarios using the producer-consumer, bounded buffers, and readers-writers solutions. They explore the concept of thread monitors, for greater abstraction when controlling resources, and discuss deadlock analysis, with strategies to prevent threads from freezing.
Later, the book moves on to some programming strategies for allocating work between threads, using models like the workgroup, manager-worker, and pipeline to solve problems. The book closes with a few examples of threads used across the enterprise, including Microsoft's DCOM.
In all, this guide proves remarkably engaging and effective. The authors present many useful code examples of multithreading in action, which will get you started using threads in your own programs. --Richard Dragan
Product Details
Would you like to update product info or give feedback on images?
|
|
Share your thoughts with other customers:
|
||||||||||||||||||||||
|
Most Helpful Customer Reviews
21 of 21 people found the following review helpful:
2.0 out of 5 stars
Quick Look Encounters Errors and Typos,
By grandpiano_57 "James" (Burlington, CT USA) - See all my reviews
Amazon Verified Purchase(What's this?)
This review is from: Multithreaded Programming with Win32 (Paperback)
In the sections I have had to study, the book is obviously filled with typos. Sadly, it is another example of a poorly edited computer book. P.118 talks of a GetBothForks function. In the example, that function does not exist. There is a function called GetForks. That may be what they are referring to(?) On the next page the book discusses Preemption. The lines referenced in the example are obviously not the lines intended. In other words, references to lines 9-13 are probably really referencing lines 15 - 20(?) Finally, that solution is essentially the same as the previous. The first question a good student would ask is what is the difference? Of course, I guess the book does not pre-suppose a good student is reading. In summary, not edited well and therefore not trustworthy.
5 of 6 people found the following review helpful:
5.0 out of 5 stars
Clear, concise natural progression with good examples,
By A Customer
This review is from: Multithreaded Programming with Win32 (Paperback)
This book is very easy to read and follows a natural progression from the problem of why multithreads are needed and how to go about solving the problem. Simple examples of a single reader and single writer thread are presented first followed by increasingly more complex examples of multiple readers and multiple writers with the changes clearly pointed out. I was able to skip around with ease and applied the concepts to my own application within hours. The chapters on monitors were well written - the first chapter in an abstract manner to illustrate the point followed by another chapter that had the actual guts of the code. The chapter on deadlock analysis was very useful in pointing out the issue of deadlock avoidance through the use of preemptive threads. This was important in my application where threads have to yield resources when their allotted cpu time was up.
5.0 out of 5 stars
Review on Multithreaded Programming Book,
Amazon Verified Purchase(What's this?)
This review is from: Multithreaded Programming with Win32 (Paperback)
http://www.amazon.com/gp/product/0130109126/ref=cm_cr_rev_prod_title
This book is a good place to start if you want to expand your knowledge of using multiple threads in a program. This book also is a good place to start for someone who wants to learn win32 api. Multithreaded programming is a must in every program released from now on! With multicore processors and multiple processor computers becoming the norm, applications that take advantage of multiple thread will just blow the socks off of your customers for a while, and then keep people happy later. REMEMBER THOUGH: Multiple threads, etc. are NO SUBSTITUTE for well written and compiled programs. Hope you all enjoy! Caleb Begly Crystal River Computers [...] Languages: C++, VB, PHP, Apache, Perl. BEGINNING PROGRAMMERS: Confused? Start out with C++; the rest follow naturally.
Share your thoughts with other customers: Create your own review
|
|
Tags Customers Associate with This Product(What's this?)Click on a tag to find related items, discussions, and people.
|