I have been trying to write some java application. What this application wants to run is processing a text file.
However, that input text file is large, (over 200mb) I t
worker1.run();
calls your run method directly. To start a thread (which calls your run method in the new thread), use:
worker1.start();
(similar for worker2/3/4)
Edit: I thought the workers were Threads, not Runnables. mvieghofer's answer is correct.