I have one clarification that i have 5 clone vi and one array in single global variable .
Each clone vi write element in particular index of array parallely.
consider while clone0.vi write 0 index of array at the sametime clone.vi write 1 index of array,so is this case make race condition,
my doubt is if we write one elemenent by all at parallely its make race condition,but inthis case i write invidula element in the array...so its arise the doubt.pls tell me
yes, there can easily arise a race conditon. Why not use a FGV instead?
If you have 5 clone VI and one array in global variable, during the execution where the 5 VI run together and will update the array global variable without any mechanism to protect the access to the array, you WILL have race condition.
I hope that this clarify your doubt.
That faliure scenario is very similar to the example of a Race Condition I included in my Action Engine Nugget.
This is apreview of that thread.
See that nugget to find a way of avoiding the race condition without resorting to semaphores etc.