A Java program to test the efficency of thread pools