title: Java multithread vs Shell script
body: <p>If i have 3 tasks that i want to run all of them simultaneously, there are two ways i'm thinking of right now.</p>
  
  <p>Since i'm running the program in linux, i could do it in shell script.</p>
  
  <blockquote>
  <pre><code>  java Task1 &amp;
    java Task2 &amp;
    java Task3 &amp;
  </code></pre>
  </blockquote>
  
  <p>or, i could use one java program to spawn three child threads to do the tasks.</p>
  
  <p>I want to know which way is more efficient. I doubt the shell way will create multiple JVM instance?</p>