title: Use multi threading to read files/processing using Java?
body: <p>So I haven't really done any serious multithreading before( with the exception of the typical for-loop textbook example) so I thought I might give it a try. The task that I am trying to accomplish is the following:</p>
  
  <ol>
  <li>Read an identification code from a file called <code>ids.txt</code></li>
  <li>Search for that identification code in a separate file called <code>sequence.txt</code></li>
  <li>Once identification is found, extract the string that follows the id.</li>
  <li>Create an object of type <code>DataSequence</code> (which encapsulates the identification code and the extracted sequence) and add it to an ArrayList.</li>
  <li>Repeat for 3000+ ids.</li>
  </ol>
  
  <p>I have tried this the "regular" way within a single thread but the process is way too slow.How can I approach this issue in a multi-threaded fashion ?</p>