/* CSC 145 Assignment: Java Concurrency 1. The first problem will deal with multi-threaded matrix multiplication. A rXc matrix can be multiplied by a cXr matrix. Here, a matrix will be represented as a double[][]. Given double[][] M, M.length is the number of rows of the matrix, and M[0].length is the number of columns of the matrix. (Java only uses dynamically allocated arrays). Assume we have arrays M, N, and R (pre-allocated). M has dimensions rowsXcols, N has dimensions colsXrows, and R has dimensions rowsXrows. The following code will multiply M and N and store the result in R: int i, j, k; for(i=0;i