1

我已经将一些FORTRAN子例程编译到一个.so文件中,我JNA用来从Java.

从多个线程同时(可重入)调用子例程是否安全?

我不认为子程序保持任何全局状态,但是有什么要求JNA吗?

4

1 回答 1

2

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.

于 2013-01-25T07:16:53.063 回答