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
Reading files on one disk usually does not benefit from multithreading.
Try to improve the way you read and process the file. Use a BufferedReader if you do not already use a buffer.
If you do a lot of processing from what is read, then consider multithreading the processing while keeping one thread dedicating to reading.
To run concurrent tasks, you should use an ExecutorService that you instanciate thanks to Executors. Take some time to read the javadoc.