Intel Threading Building Blocks
Outfitting C++ for Multi-core Processor Parallelism
Publisher: O'Reilly Media
Final Release Date: July 2007
Pages: 336

Multi-core chips from Intel and AMD offer a dramatic boost in speed and responsiveness, and plenty of opportunities for multiprocessing on ordinary desktop computers. But they also present a challenge: More than ever, multithreading is a requirement for good performance. This guide explains how to maximize the benefits of these processors through a portable C++ library that works on Windows, Linux, Macintosh, and Unix systems. With it, you'll learn how to use Intel Threading Building Blocks (TBB) effectively for parallel programming -- without having to be a threading expert.

Written by James Reinders, Chief Evangelist of Intel Software Products, and based on the experience of Intel's developers and customers, this book explains the key tasks in multithreading and how to accomplish them with TBB in a portable and robust manner. With plenty of examples and full reference material, the book lays out common patterns of uses, reveals the gotchas in TBB, and gives important guidelines for choosing among alternatives in order to get the best performance.

You'll learn how Intel Threading Building Blocks:

  • Enables you to specify tasks instead of threads for better portability, easier programming, more understandable source code, and better performance and scalability in general
  • Focuses on the goal of parallelizing computationally intensive work to deliver high-level solutions
  • Is compatible with other threading packages, and doesn't force you to pick one package for your entire program
  • Emphasizes scalable, data-parallel programming, which allows program performance to increase as you add processors
  • Relies on generic programming, which enables you to write the best possible algorithms with the fewest constraints
Any C++ programmer who wants to write an application to run on a multi-core system will benefit from this book. TBB is also very approachable for a C programmer or a C++ programmer without much experience with templates. Best of all, you don't need experience with parallel programming or multi-core processors to use this book.

Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
O'Reilly MediaIntel Threading Building Blocks
 
1.5

(based on 2 reviews)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (1)

Reviewed by 2 customers

Sort by

Displaying reviews 1-2

Back to top

(10 of 11 customers found this review helpful)

 
2.0

Little more than the Intel PDFs

By kfsone

from Bedford, TX

About Me Developer

Verified Reviewer

Pros

    Cons

    • Difficult to understand
    • Not comprehensive enough
    • Too many errors

    Best Uses

    • Expert

    Comments about O'Reilly Media Intel Threading Building Blocks:

    The book mostly consists of slightly-annotated variations of the[@] PDFs, albeit slightly easier to read thanks to the O'Reilly layout. But, for example, the parallel_scan description is exactly the same - and just as difficult to comprehend - as that in the "GettingStarted.pdf" over at tbb.Alas the book is already out-of-date; the online documentation versions include C++0x Lambda expression examples, while the book includes a short comment on the possible future of Lambdas right at the end.The book retains the online-docs helter-skelter launch into things, so if you were hoping the book might walk you into how things work with a little more grace, you'll be dissapointed.Lastly: The book continues the emphasis on algorithmic crunching; I was hoping that in the book they might at least invest a little additional time into describing independent parallelism, aka threading. Alas, aside from the stock parallel_while and pipeline documentation from the tbb site, it doesn't really go into it. There is some coverage of the task scheduler, but it is an old version of the online documentation, so it explores how the task scheduler works rather than examining practical use cases.With that said: It fails to inspire any real "wow" as to how TBB might really benefit a non-trivial parallelization task over the equally algorithm-centric OpenMP.

    (8 of 16 customers found this review helpful)

     
    1.0

    Too much evangelism

    By Chrilly

    from Altmelon, Austria/Europe

    About Me Designer, Developer

    Verified Reviewer

    Pros

      Cons

        Best Uses

          Comments about O'Reilly Media Intel Threading Building Blocks:

          In the former times the court-poets of dukes or kings wrote praise-poems to the diletantic literaric works of their masters. Cervantes reacted on this by writting ironic praise-poems for his own Don Quijote.
          I thought these times have long passed by. But famous scientist are doing nowadays practically the same. They are writing praise-poems to a rather mediocre book. The reason is the same than in the old times. Getting money from a rich person/organisation. But its nevertheless a shame.
          The author calls himself an Evangelist. Which is for European ears very unusuall. But its correct. The book has very little detailed technical content, it just tells the reader over and over again, how great TBBs are.
          TBBs are based on the Cilk-technology of M.I.T. The team developed also a massive parallel programm called Cilk-Chess. My own PC-based chess programm won in computer-chess tournaments several times against Cilk-Chess. The speedup of Cilk was - at least for chess - very modest. Writing an effective massive parallel chess programm requires a lot of work and knowledge. With Cilk/TBBs its relative straightforward. But the result is of little practical value.
          The book does not address the efficiency question at all. I have not found any detailed speedup analysis. But that's the real question in parallel programming. If its not considerable running faster than the linear version, there is no point for doing the work.

          Displaying reviews 1-2

          Back to top

           
          Buy 2 Get 1 Free Free Shipping Guarantee
          Buying Options
          Immediate Access - Go Digital what's this?
          Ebook: $31.99
          Formats:  DAISY, ePub, Mobi, PDF
          Print & Ebook: $43.99
          Print: $39.99