title: task id as thread name in thread pool
body: <p>I need to create a thread from the thread pool and need to pass a <em>task id</em> - a unique id that kept in my <code>Runnable</code> object - as the thread name.</p>
  
  <p>I looked in to the <code>ThreadFactory</code> interface, but in that I couldn't pass any additional parameter as thread name to the thread created. Also, I looked at the <code>DefaultThreadFactory</code> class. It uses an <code>AtomicInteger</code> to set the thread name. </p>
  
  <p>Can I pass an arbitrary string to the factory and have it use that string as the name of the thread created?</p>