Code in the email application does not start threads a daemon , this prevents mmbase 
from restarting correctely after a "touch web.xml"

I'm posting this here since everybody should be aware of this problem

all thread should be started as deamon threads.
            kicker = new Thread(this,"ModuleProbe");
            kicker.setDaemon(true);
            kicker.start();

code should never call Thread.stop() if you really need to stop a thread .. this is 
code that might work
        kicker.interrupt();
        kicker = null;


try {Thread.sleep(whatever)} catch (InterruptedException ie){}

if a thread was interrupted .. it probabely should stop

try {Thread.sleep(whatever)} catch (InterruptedException ie){
log.warn("interrupted bla die bla, stopping thread");
return;
}


Thread priority:
Setting thread priority does not really work. it depends on the jvm what happens
just don't use it.


disclaimer: I hope i'm not telling b***shit. if so please tell me.

-- 
Kees Jongenburger
Mediapark C101 Hilversum  
+31 (0)35 6772910


Reply via email to