use multi thread to solve IO intensive problem in Java