@Override public void run() { float temp; for (int i = startIndex; i <= endIndex; i++) { temp = 0.0f; for (int j : m.getNonZeroRowIndecies(i)) { temp += getValue(j) * m.getValue(i, j); } result.setValue(i, temp); } cdl.countDown(); }