Comment #2 on issue 74 by wozza.xing: Meaningful SLEE thread names
http://code.google.com/p/jain-slee/issues/detail?id=74
Although I haven't seen the code regarding Threading, I think the correct
approach is to use Thread Groups and Thread Factory and an Executor, This
is how I approach Threading, usually.
final ThreadGroup tg = new ThreadGroup("Mofokom RA ThreadGroup") {
@Override
public void uncaughtException(Thread t, Throwable e) {
// do something meaningful?
}
};
final ThreadFactory tf = new ThreadFactory() {
public Thread newThread(Runnable r) {
Thread t = new Thread(tg, r);
t.setPriority(Thread.MAX_PRIORITY);
return t;
}
};
BlockingQueue<Runnable> workQueue = new ArrayBlockingQueue<Runnable>(
(Integer)
properties.getProperty("WORK_QUEUE").getValue());
executor = new ThreadPoolExecutor(
EXECUTOR_CORE_POOL_SIZE,
EXECUTOR_MAX_POOL_SIZE,
EXECUTOR_POOL_TIMEOUT,
TimeUnit.SECONDS, workQueue, tf);
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.