Read the instructions at the beginning of theattached file A3.java. A3
class multiplies two matrices A 3by2 and B 2by3 to have C 3by3 using
Worker threads. A worker thread multiplies row i of A by Column j of B
to get element C[i][j]. The number of the Worker threads is then equals
to 3 times 3 = 9. The code in the program is generalized to MbyK and
KbyN matrices. However the entry of the data is for the two matrices is
fixed by initialization in the code.Tasks:(1) change the name of this file and class to A3-200910392.java.(2) finish up the code to acheive the goal of this program.
/** A3 class multiplies two matrices A 3by2 and B 2by3 to have C 3by3 using Worker threads.
*a worker thread multiplies row i of A by Column j of B to get element C[i][j].
*the number of the Worker threads is then equals to 3 times 3 = 9.
*the code in the program is generalized to MbyK and KbyN matrices.
*however the entry of the data is for the two matrices is fixed by initialization in the code.
*
*Tasks:
*(1) change the name of this file and class to A3-yourID.java.
*(2) finish up the code to acheive the goal of this program.
*(3) Submit you program with the name A3-yourID.java
*
*Due: Thursday 8-Nov 2012
**/public class A3{/*TODO0*/
private final int M = 3;
private final int K = 2;
private final int N = 3; public A3(){/*TODO0*/
//Initialize matrices
int[][] A = {{14} {25} {36}};
int[][] B = {{876} {543}};
int[][] C = new int[M][N]; for(int i = 0; i