Can we use TBB concurrent_vector with openmp?
Will concurrent updates be allowed?
Yes, TBB's concurrent data structures are meant to be thread-safe, which means whatever threading paradigms, such as OpenMP, TBB, Cilk, PPL, and etc, are okay to use TBB's concurrent data structures. This is because concurrent_vector
is simply a data structure class rather than threading-related control code.
Furthermore, TBB's mutex can be also used within OpenMP, Cilk, and PPL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With