If i had a list containing 4 long[], is it possible to assign a thread to each long[] and modify it? No thread is technically trying to modify data another thread should be accessing.
long[] array1 = new long[4]{1,2,3,4};
long[] array2 = new long[4]{2,4,5,6};
long[] array3 = new long[4]{3,4,8,9};
long[] array4 = new long[4]{4,5,8,10};
List<long[]> myList = new List<long[]>();
myList.Add(array1);
myList.Add(array2);
myList.Add(array3);
myList.Add(array4);
Then using task factory, get thread 1 to multiply each element in array1 by 1. Thread 2 multiplies each element in thread 2 by 2, etc. So the final config would be
1,2,3,4
4,8,10,12
9,12,24,27
16,20,32,40