On Mon, 4 Oct 2004 19:27:18 +0200, Henk Hangyi <[EMAIL PROTECTED]> wrote:
> Hi Michiel,
> 
> > The present version (offered in the current hack) does not
> > require for you
> > to do your own thread stuff, so you can't do something wrong
> > with that.
> 
> What is the default priority of the crontab thread? Can i set the
> priority for the thread from crontab.xml?
When I took a look at
http://java.sun.com/docs/books/tutorial/essential/threads/priority.html
my conclusion was that you don't want to set thread to a lower
priority in a server environment. My understanding is also that
priority is handled differently on different JVM's/Os'se. I hope I was
right since in the last year I have removed quite a lot to code that
had to do with priority.

I quick grep show this
[EMAIL PROTECTED] src]$ grep -r PRIO * | grep setP
org/mmbase/util/FileWatcher.java:            setPriority(MIN_PRIORITY);
org/mmbase/module/core/MMBaseMultiCast.java:       
kicker.setPriority(Thread.MIN_PRIORITY);
org/mmbase/module/core/MMBaseMultiCast.java:           
kicker.setPriority(Thread.NORM_PRIORITY+1);
org/mmbase/module/core/MultiCastChangesSender.java:       
kicker.setPriority(Thread.MIN_PRIORITY);
org/mmbase/module/core/MultiCastChangesReceiver.java:       
kicker.setPriority(Thread.MIN_PRIORITY);
org/mmbase/module/core/MMBaseMultiCastProbe.java:       
kicker.setPriority(Thread.MIN_PRIORITY);
org/mmbase/module/builders/EmailQueueProbe.java:       
kicker.setPriority(Thread.MIN_PRIORITY+1);
org/mmbase/module/builders/vwms/VwmProbe.java:       
kicker.setPriority(Thread.MIN_PRIORITY+1);

probably all the same code copied over and over again :)

Reply via email to