Whats the fastest lock to use when a few indices in an array is to be locked? I've only used pthread before, so be patient. :-)
Example:
I don't really know how to implement the idea above. I hope it is possible to understand what it is I want to do... Please enlighten me. :-)Code:some global array = {0,1,2,3,4,5,6,7,8,9} ... //omp section one processor needs to lock indices 3,5,6 for(i:loop through 3,5,6) which lock on : array[i]