In C you can create a TRUE daemon which you start by executing it
and it severs itself from the terminal you started it from.
In java you can use javaw in windows, but in unix you would have to
do "nohup java programname &" . But this is not really a TRUE daemon
because if you now say "fg" it is back under command line control.
I read many examples and they all say that in java a daemon thread
will exit when there are no non-daemon threads because the JVM believes
that daemon threads are meant to provide support for non-daemon
threads.
Is all this correct ? I am trying to make a simple java socket server that
will run on a unix machine or windows machine. Are there any good
examples available say on a university website ?