Changed how to create write file to disk
ThreadPool will create threads according to the number of processors available to the Java virtual machine