Java Daemon Threading with JNI
- by gwin003
I have a Java applet that creates a new non-daemon thread like so:
Thread childThread = new Thread(new MyRunnable(_this));
childThread.setDaemon(false);
childThread.start();
Then my MyRunnable object calls a native method that is implemented in C++:
@Override
public void run() {
while (true) {
if (!ran) {
…