Initializing help system before first use

jvmdetachthread

jvmdetachthread


Purpose
Detach the current thread from the Java virtual machine
Synopsis
procedure jvmdetachthread
Further information
1. Normally, the Java thread will be destroyed when the Mosel thread exits or the Mosel model terminates. Call jvmdetachthread to explicitly detach the thread from the JVM before the end of the model.
2. If you called jvmattachthread multiple times from the same system thread, you must call jvmdetachthread a corresponding number of times.
3. If you make a Java method call, or call jvmattachthread, after called jvmdetachthread, a new Java thread will be created for this call.
Related topics