Java daemon thread dying
843811Apr 30 2004 — edited May 9 2004Hi All,
I have a java daemon thread that seems to die randomly (on SunOS 5.6 JDK140.01). There are no exceptions thrown and there are no core dumps created by the JVM. Basically the thread sits in a while(true) loop waiting for files to exist in a certain directory so even if it wasn't a daemon thread I would expect it to stay alive. It doesn't die while processing a file nor does it die after a certain time of not processing any files.
If anyone knows a cleaner/safer way of waiting for files other than a while(true) loop or if anyone has an idea about why the process maybe dying, i will be most gratefull.
Cheers