I have this code:
public final class AClass{ static Long x=0; public static Long aMethod(args...){ //commands x = aMethod(args...); x += aMethod(args...); //commands } } I want to execute the two lines of code(the two calls of aMethod) parallel with threads.