public void executeOnDaemon ( Runnable command ) { int id = 0 ; final Runnable commandToRun = command ; synchronized ( this ) { this . daemonId ++ ; id = this . daemonId ; } final String runId = name + " : DMN" + id ; // d185137.2 Thread t = ( Thread ) AccessController . doPrivileged ( new PrivilegedAction ( ) { // d185137.2 public Object run ( ) { // return new Thread(commandToRun); // d185137.2 Thread temp = new Thread ( commandToRun , runId ) ; // d185137.2 temp . setDaemon ( true ) ; return temp ; } } ) ; t . start ( ) ; }
Dispatch work on a daemon thread . This thread is not accounted for in the pool . There are no corresponding ThreadPoolListener events . There is no MonitorPlugin support .