Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经将一些FORTRAN子例程编译到一个.so文件中,我JNA用来从Java.
FORTRAN
.so
JNA
Java
从多个线程同时(可重入)调用子例程是否安全?
我不认为子程序保持任何全局状态,但是有什么要求JNA吗?
AFAIK JNA doesn't have any specific limitations of multi-threaded use. At least I have assumed it doesn't and it hasn't shown a problem. JNA is stateless so I would be surprised if it did.