On Wed, July 25, 2007 15:54, Andrew Holden wrote:
Toon Knapen wrote:
I just received (again) some doc on the Intel Threading Building Blocks (TBB) (http://www.threadingbuildingblocks.org/).
I was wondering how the boost.thread developers/supporters would compare TBB with boost.thread (btw: the book of James Reinders on TBB mentions boost.thread) ?
The two libraries are meant to solve different problems. Boost.thread handles situations where the programmer wishes to explicitly manage threads, often giving each thread a distinct task to perform. It would be useful for situations like worker threads in a GUI program. It is also useful I/O-bound threads, which would cause TBB to waste a processor core.
TBB, on the other hand, is useful for situations in which you have a parallelizable task to perform, and you would rather not worry about threading details, like a parallel for loop.
Do you mean that TBB is more like a "future" which might be added to the upcoming tr2?
[...]
With Kind Regards, Ovanes Markarian