Multi-threaded Filing Program in Java