title: Processing two tasks exactly at the same time as parallel in Java
body: <p>I want to call 8 methods in a method.</p>
  
  <p>2 methods inside of these 8 methods is one hole task, and the remaining 6 methods is another hole task.</p>
  
  <p>I want to process these 2 tasks exactly at the same time as parallel. </p>
  
  <p>As I know I can do it with threads. But to be honest either I couldn't see an example which is similar to my goal, or I couldn't understand the example if I've seen.</p>
  
  <p>Could you briefly show me an example in order me to finish my goal?</p>
  
  <p>Thanks,</p>