I\'m having a tough problem with invoking a native function using JNI from a thread.
The native function is legacy code that performs a computation-intensive task. Since
Here there is a good documentation about it: Section 8.1 JNI and Threads. http://java.sun.com/docs/books/jni/download/jni.pdf