Welcome to the JavaRanch, Anand. Please change your displayed name to conform to our
naming policy. In short, your name must be a first name and last name, separated by a space and not obviously fake.
Threads are useful for doing several things at once. They do not make doing an intensive process faster. There's several things that can impact the performance of database access and file IO. What strategy will get you the greatest payoff depends on your particular situation. There's no one answer. You need to benchmark the current performance, then try different approaches to see what works. Start with the IO chapter of
Java Platform Performance. After you tune the file side, read through
Best Practices to improve JDBC Performance. Again, there's multiple things to try and measure. Good luck!