I just noticed that I am starting a bunch of threads but dont have any provisions for them exiting the run method.
So I am asking if I no longer hold a reference to a thread, will it die before the JVM exits on its own? Off the top of my head I am going to say no because that seems like it would require stoping the thread. And the JVM can not know when its safe to do so!?
So I am asking if I no longer hold a reference to a thread, will it die before the JVM exits on its own? Off the top of my head I am going to say no because that seems like it would require stoping the thread. And the JVM can not know when its safe to do so!?