protected PoolThread newThread(Runnable job) { synchronized(_lock) { PoolThread thread =new PoolThread(job); _threads.add(thread); thread.setName(_name+"-"+_id++); thread.start(); return thread; } }
thread.dispatch(job);
PoolThread() { setDaemon(_daemon); setPriority(_priority); }
PoolThread(Runnable job) { setDaemon(_daemon); setPriority(_priority); _job=job; }