Multiplication on threads