0
想要newSingleThreadExecutor创建的线程的类型。 http://download.oracle.com/javase/1.5.0/docs/guide/concurrency/overview.html显示我们可以在单个后台线程中创建线程 (与Swing中的事件一样)或在新创建的线程中。但如何控制?用newSingleThreadExecutor创建的线程是一个新创建的线程还是一个deamon线程?
+1:换句话说,请使用http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Executors.html#newSingleThreadExecutor%28java.util.concurrent.ThreadFactory%29 – 2011-04-15 07:17:10