That's about it.
By definition, the JVM will exit automatically if the only threads still running are daemon threads.
I read this too.
On linux, you may make a thread a daemon by suffixing it with a ' &'.
I was unsure, whether this would stop every created thread, because MyServer created only background-Threads.
But a java-Daemon is as I have seen, different from an OS-Daemon.
All Threads in background kept running nicely.
Originally posted by Radhika Gokhale:
This is really urgent. I am looking for some info on Daemon and Non Daemon Threads.
Any links for details would be really helpful....
You might want to check into how different operating systems treat non-daemon and daemon threads differently priority wise.