title: Can a pthread dispatched from native code call back into JNI?
body: <p>Hypothetical: Calling C++ code from Java is relatively straightforward. As I understand it, the C++ code is executed in the same thread as the Java code calling it (correct me if I'm wrong). If the C++ code then starts a new <em>native</em> thread with <code>pthread_key_create()</code>, can this thread call back into Java through JNI? If so, how is this possible, since the code would then be executing in a pthread instead of a Java thread on the JVM?</p>