Changes

Jump to: navigation, search

Team Darth Vector

1 byte removed, 20:40, 16 December 2017
m
Lock Convoying in TBB
Through '''concurrent_vector''', every time an element is accessed/changed, a return of the index location is given. TBB promises that any time an element is pushed, it will always be in the same location, no matter if the size of the vector changes in memory. With a standard vector, when the size of the vector changes, the data is copied over. If any threads are currently traversing this vector when the size changes, any iterators may no longer be valid.
TBB also provides its own versions of the mutex such as '''spin_mutex'' for when mutual exclusion is still required.
You can find more information on convoying and containers here: https://software.intel.com/en-us/blogs/2008/10/20/tbb-containers-vs-stl-performance-in-the-multi-core-age
129
edits

Navigation menu