I have a native shared library implemented in C which I'm invoking through java JNI, now I have to access the native library in parallel in multiple java threads the problem is the threads are started after serialization and are independent of one other. so when i try to load the library in all the threads in parallel i see "java.lang.UnsatisfiedLinkError".
i have doubt in how the shared library works in this case and is it possible to access the shared library in multiple threads at the same time? i know that my shared library is thread safe means it doesn't using any global variables.
I'm running the program in Linux box.
Thanks.