[concurrency-interest] ScheduledThreadPoolExecutor woes

Ernst, Matthias matthias.ernst at coremedia.com
Thu Jan 18 10:42:10 EST 2007


Bela,

#1: this is addressed in Java 6 with a short timeout +
http://java.sun.com/javase/6/docs/api/java/util/concurrent/ThreadPoolExe
cutor.html#allowCoreThreadTimeOut(boolean)

I'm only assuming that it applies to ScheduledTPE as well.


#2: In that case I'll have the tasks reschedule themselves:

run() {

  ... pool.schedule(this, remaining);
}

HTH
Matthias

-- 
matthias.ernst at coremedia.com
software architect
+49.40.32 55 87.503
 



More information about the Concurrency-interest mailing list