Multi threaded (2 threads) Java program for copy command