title: run static method from a thread pool in java
body: <p>What is the best way to run a static method in several threads, using a thread pool?
  Also I trying to pass an argument to the static method. something like</p>
  
  <pre><code>Class A{
   public static runTask(int i){
     ....
   }
  
  }
  </code></pre>
  
  <p>and from a main:</p>
  
  <pre><code>ThreadPool pool = new ThreadPool(5, "poolname");
  
  for(int i=1; i&lt;10; i++){
  
     A.runTask(i) // but on a new thread...
  
  }
  </code></pre>
  
  <p>Thanks!</p>