I am doing the following (deep down in my main())
DoubleFFT_1D doubleFFT = new DoubleFFT_1D(dataInWindow.length);
double[] resultsFFT = Arrays.copyOf(dataInWindow, dataInWindow.length);
doubleFFT.realForward(resultsFFT);
and when my main() returns it hangs for about 60 seconds before actually exiting the JVM. If I comment out the last line, the problem goes away. I think this is because ConcurrencyUtils uses Executors default thread factory which creates non-daemon threads.
@Override
public Thread newThread(Runnable r)
{
Thread t = DEFAULT_FACTORY.newThread(r);
t.setUncaughtExceptionHandler(handler);
return t;
}
Should you be using daemon threads.
I am doing the following (deep down in my main())
and when my main() returns it hangs for about 60 seconds before actually exiting the JVM. If I comment out the last line, the problem goes away. I think this is because ConcurrencyUtils uses Executors default thread factory which creates non-daemon threads.
Should you be using daemon threads.