G
ganeshamutha
Hi,,
A C-process (JNI thread) connected with some thread.. i found few
problem...
1. When I want to suspend i called wait().. it was
suspended .. if i want to ask it to resume i called notify() and
notifyAll() but JNI thread not resuming from where it is left. When i
say start it is starting from initial position and after few
suspend / start .. Java get crashing..
*** What could be the wrong on there? How do can fix it?
2. I am keep on checking the status instance
JNIEnv *envG; jobject objG;
jclass cls=(*envG)->GetObjectClass(envG,objG);
jmethodId mid=(*envG)-
if( *envG->CallBooleanMethod(envG,objG,mid))
{
/**Some Iteration***/
}
i want to quit the exact JNI thread (C-process) if Java
thread returns the bool as true. how do can i kill the exact C-
process.. i have used exit(1) in C but it was closed all the thread
including Java..
**** how do can i stop the Process ? which approach will
easy either through C or Java?
Thanks in advance,
Ganesh.
A C-process (JNI thread) connected with some thread.. i found few
problem...
1. When I want to suspend i called wait().. it was
suspended .. if i want to ask it to resume i called notify() and
notifyAll() but JNI thread not resuming from where it is left. When i
say start it is starting from initial position and after few
suspend / start .. Java get crashing..
*** What could be the wrong on there? How do can fix it?
2. I am keep on checking the status instance
JNIEnv *envG; jobject objG;
jclass cls=(*envG)->GetObjectClass(envG,objG);
jmethodId mid=(*envG)-
getMethodID(envG,cls"wait_here","()Z");
if( *envG->CallBooleanMethod(envG,objG,mid))
{
/**Some Iteration***/
}
i want to quit the exact JNI thread (C-process) if Java
thread returns the bool as true. how do can i kill the exact C-
process.. i have used exit(1) in C but it was closed all the thread
including Java..
**** how do can i stop the Process ? which approach will
easy either through C or Java?
Thanks in advance,
Ganesh.