Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jan_barnholt
Beginner
69 Views

Simultaneous access to arrays

Thread Checker reports several conflicts when our application
accesses arrays simultaneously from several threads.

I couldn't find a note in the documentation whether the VTune TC
makes a distinction for the array elements accessed or if any
concurrent access to the array (regardless what index) is reported
as a conflict.

In other words, if thread 1 always accesses the array at
index 1 and thread 2 concurrently accesses index 2, will this
arouse a conflict ?

regards,
J. Barnholt
0 Kudos
2 Replies
TimP
Black Belt
69 Views

I wouldn't be surprised if a potential conflict were always reported for simultaneous access to the same array. I can't imagine a useful case simple enough for easy diagnosis. Even if there is no actual conflict, but false sharing is likely, the warning could be helpful.
I also would be interested in a more authoritative answer.
TimP
Black Belt
69 Views

I suppose this question might be appropriate for the threading forum.
Reply