|
-
August 23rd, 2010, 09:00 AM
#1
multimap and multithreading
Hi,
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.
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|