On the #tbb channel, the question of what concurrent access is possible using the concurrent_vector container was discussed.
I would think that there is no problem with multiple threads reading from the same concurrent_vector container. It also looks like (from reading the TBB Reference manual) multiple threads can safely perform many "write" operations on a concurrent_vector container (but whole vector operations are not thread safe).
The users on the #tbb channel were wondering about internal counters, etc., trying to decide when it's necessary to use a concurrent_vector instead of using the STL vector, and what exact level of thread safety is gained through concurrent_vector.
Does anyone have additional comments on concurrent_vector and thread safety?
concurrent_vector thread safety
For more complete information about compiler optimizations, see our Optimization Notice.

