I have some JNI C++ code that gets called from a C application. Sometimes, the thread on which it gets called is not known to the JVM.
To enable the use of JNI calls into the JVM from this thread, I call AttachCurrentThreadAsDaemon().
As we attach as daemon, the attaching of this thread does not affect JVM shut-down. However, I have been unable to find out information about what other effects it has.
The main question for me is whether it is really necessary to detach my threads from the JVM explicitly. Or will the JVM automatically clean up any resources it has associated with my threads, when they die?
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.