I have a Java application which is using JNI. Using Main thread of java I am creating a pthread eg. t1(using pthread_create) in native.
I also have a UI which is interacting with my java application with IDL & CORBA. From UI when I call my Close() in java, then it will try to do pthread_join() of thread t1 in native. But this pthread_join() failed, because it is trying to joined by different thread other than Main thread. I am suspecting that here CORBA thread is not switching to main thread. Please suggest me how to perform phread_join().