Post by Colin B MaharajIntel's thread building block
http://www.devx.com/go-parallel/Article/36010
A few months ago I played a little bit with it.
I very much liked the idea of not having to fiddle with
threads manually. You replace 'for_each()' with their
'parallel_for()' and you're done. (Well, except for
thread-safe synchronization, that is...) TBB figures
out how many processors are on the machine, divides the
range into small ranges, and passes those to threads it
creates -- all automatically. I suppose that, if you do
something that's CPU-bound, it does so fine. (I hacked
together a line-count app and that was IO-bound. So I
manually set the thread number up to 10 on my dual core
machine until I had a 100% CPU usage.)
Schobi