title: How to give name to a callable Thread?
body: <p>I am executing a Callable Object using ExecutorService thread pool. I want to give a name to this thread.</p>
  
  <p>To be more specific, in older version I did this -</p>
  
  <pre><code>Thread thread = new Thread(runnable Task);
  thread.setName("My Thread Name");
  </code></pre>
  
  <p>I use thread name in log4j logging, this helps a lot while troubleshooting. Now I am migrating my code from Java 1.4 to Java 1.6. I have written this(Given below)- but I dont know how to give name to this thread.</p>
  
  <pre><code>private final ExecutorService executorPool = Executors.newCachedThreadPool();
  Future&lt;String&gt; result = executorPool.submit(callable Task);
  </code></pre>
  
  <p>Please give me some idea to give name to this thread?</p>