I need the Java Code to print the 1 to 1000 number using 10 threads? The code should be performance oriented.