August 23rd, 2010, 10:00 AM
multimap and multithreading
Greatly appreciate your help;
Imagine that I have a multimap. in a for loop I assign values to different elements of this multimap,
But I know that each iteration assign value to a particular element in a way that is independent from other elements of that multimap.
and that never during the loop we work on the same element twice.
Do I have to still implement a locking mechanism if I want to do this loop in a multi-threaded fashion?
I'm intending to do this using Open-MP but I guess that wouldn't make any difference in how the mechanics of it should work.
Tags for this Thread
Click Here to Expand Forum to Full Width