- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
I'm newbe of Intel TBB. When start using tbb, I'm confusing when to use tbb::concurrent_vector, and when std::vector is OK?
After searching some forum (c++ - concurrent_vector for 2d array - Stack Overflow), the question still not clear for me.
Is there any clear notes / examples for when to use tbb::concurrent_vector / std::vector.
Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @roderickHuang, you can find detailed documentation for tbb::concurrent_vector
in the oneAPI Specification, concurrent_vector. It is a thread-safe container that allows, e.g., concurrent growth: multiple threads can concurrently grow the container and append new elements. While std::vector is a regular, not thread-safe container.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page