阅读背景:

为什么本机库在使用java时使用的内存比在Linux下使用C-Programm时多1.5倍?

来源:互联网 

I've written a library in C which consumes a lot of memory (millions of small blocks). I've written a c program which uses this library. And I've written a java program which uses the same library. The Java program is a very thin layer around the library. Basically there is only one native method which is called, does all the work and returns hours later. There is no further communication between Java and the native library using the java invocation interface. Nor there are Java object which consume a noteworthy amount of memory.I've written a library in C which consumes a lo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: