I have a GUI with a file upload section which reads, parses and stores into a database the data within.
I have the parser separate to my user interface, it worked fairly quick on my computer but
testing it on others it was painfully slow. I decided to multithread it in an attempt to speed the process up. My parser now implements runnable and i create a fixed
thread pool in my GUI and feed the runnables to the threads. On my machine i can process the 153 files in less than a second but again on other computers it takes 30, 40 seconds + depending on how big i set the thread pool to.
The main problem is that when the files are being processed it locks my GUI so i cant click on anything during that time. It didn't seem a problem on my machine as there isn't a lot i can do in a second but when the process lasts up to a minute on other machines i have a problem.
Here is the code which creates the threadpool and executes the runnables, this is within my actionlistener for the upload button.
So any help on how to stop it locking my GUI and also how i can speed up the process on other machines would be great