If you look at the call()
else
strassenMatrixMultiplication(A,B);
return C;
Nothing is being done with the result of strassenMatrixMultiplication(A,B)
.
All your P# = future#.get()
's are 0
.
A few general remarks:
- Variable names should be lower case in Java, uppercase implies Objects.
- Always use
{
and}
in if/else statements and loops to improve readability and avoiding mistakes, even if it's only one line. - When you have to declare 7 different P's you're probably hard coding too much (and should use collections), although in this particular case it might make it easier to follow. Keep it in mind though.