Thursday, April 24, 2003 05:35 AM
The only time you need to worry about synchronization is when the method could be changing the same piece of data as another method or another call of this method at the same time.
If you are taking the array in and creating a copy of it, then working on that data, then you should not have any problem.
If, however, this instance of the array may be accessable by another thread, then you may want to synchrnoze the copy block (just the portion when you copy to another array), just because you don't want someone to change the array as you copy it.
Thread synchronization topics can be a pain; and the can slow you code down and create gridlock, but careful planning can prevent lots of debugging heartache.