Simple implementation of a ThreadPool in Java. Indicate the number of threads to start in the CTThreadPool constructor.
The included example computes the square root of 1,000 random numbers, using 10 threads.
The main method is in the SquareRooter
class.