Hello, I am using a library (written in C) that is not reentrant(i.e no function in the library is reentrant). Suppose I have loaded the library via System.load to get the handle say 'v'. I cannot use v in two threads because of the reentrancy issues (tried but nonsense results). I could use locks, but that defeats any parallelism i could have gained.
What I'd like to do is start two threads, and in each thread load the library to get two different handles(thus there are two copies of the loaded library).
Is this possible in Java? Regards Saptarshi