title: How to multithread a computationally intensive code segment in Java?
body: <p>I hava a java program, a section of it is compute intensive, like this</p>
  
  <pre><code>for i = 1 :512
     COMPUTE INTENSIVE SECTION
  end
  </code></pre>
  
  <p>I want to split it into multithread, make it faster when running.</p>
  
  <p>COMPUTE INTENSIVE SECTION is not sequential-wise. It means running i=1 first or i=5 fist are the same...</p>
  
  <p>Can anybody give me a grand guide about this. How to do it?
  Thanks indeed!
  Happy Thanksgiving! </p>