I want to write a program that will receive as input a single M×N dimensional matrix A with a large number of unsorted integer numbers. The program will have to produce an N-dimensional array B containing the average of the numbers in each row of A, i.e. Bi = (Ai1 + Ai2 + ? + AiN)/N, i = 1 ? M.
This should be implemented with threads and maybe synchronised function of Java should be used.
Can anyone help me or give me any code or link to find a similar program?