|
Setting a Thread name in a ThreadPool: msg#00057java.jsr.166-concurrency
Hi, Previously, if I wanted to set a thread name, I could so something like this: new Thread(new RunnableTask(), "DoSomethingWonderfulThread").start(); now, if I'm delgating over to an Executors, like Executors.newCachedThreadPool(), and using that to execute my thread: ExecutorService s = Executors.newCachedThreadPool(); s.execute(new RunnableTask()); The execute method isn't overloaded to provide a name, so, how do I go about setting the Thread name? -=david=- -- View this message in context: http://www.nabble.com/Setting-a-Thread-name-in-a-ThreadPool-tf2513566.html#a7009924 Sent from the JSR166 Concurrency mailing list archive at Nabble.com.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Stopping all the threads and getting the stack frames, Unmesh joshi |
|---|---|
| Next by Date: | Re: Setting a Thread name in a ThreadPool, Mike Quilleash |
| Previous by Thread: | Stopping all the threads and getting the stack frames, Unmesh joshi |
| Next by Thread: | Re: Setting a Thread name in a ThreadPool, Holger Hoffstätte |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |