October 7th, 2010, 4:45 pm
outrun,What do you mean by how OS/CPU knows....Cuchulainn,VS2010 PPL is very similar to TBB. Both emphasize task based parallelism. All high level stuff from TBB is in PPL, but some useful low level stuff, such as explicit task scheduling and direct thread support (similar to Bost.Thread), are missing in PPL (or I couldn't find them in MSDN). Both TBB and PPL designed to be compatible. Switching from one to another is straightforward. TBB is portable and de facto standard. I use TBB's concurrent containers and TLS. Concurrent vector is by far the most useful container. Its behavior is similar to that of STL deque. Elements never relocate and not stored contiguously. Btw, listing operator[] as thread-safe is somewhat misleading. Only returning a reference is thread safe. Overwriting elements through that reference isn't thread-safe.
Last edited by
renorm on October 6th, 2010, 10:00 pm, edited 1 time in total.